Skip to main content
This release is 13 versions behind 1.3.3 — the latest version of @fedify/fedify. Jump to latest

Built and signed on GitHub Actions

An ActivityPub/fediverse server framework

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
3 months ago (1.2.1)
interface CreateExponentialBackoffPolicyOptions

Options for createExponentialBackoffPolicy function.

Properties

The initial delay before the first retry. Defaults to 1 second.

The maximum delay between retries. Defaults to 12 hours.

readonly
optional
maxAttempts: number

The maximum number of attempts before giving up. Defaults to 10.

readonly
optional
factor: number

The factor to multiply the previous delay by for each retry. Defaults to 2.

readonly
optional
jitter: boolean

Whether to add jitter to the delay to avoid synchronization. Turned on by default.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { type CreateExponentialBackoffPolicyOptions } from "@fedify/fedify/federation";

---- OR ----

Import directly with a jsr specifier

import { type CreateExponentialBackoffPolicyOptions } from "jsr:@fedify/fedify/federation";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { type CreateExponentialBackoffPolicyOptions } from "@fedify/fedify/federation";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import { type CreateExponentialBackoffPolicyOptions } from "@fedify/fedify/federation";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import { type CreateExponentialBackoffPolicyOptions } from "@fedify/fedify/federation";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { type CreateExponentialBackoffPolicyOptions } from "@fedify/fedify/federation";