backoffMs
@forge/monorepo / backend/src / backoffMs
Function: backoffMs()
backoffMs(
policy,attempt):number
Defined in: backend/src/runtime/retry.ts:88
Compute the pre-jitter backoff for the retry that follows attempt (1-based). Exposed for tests
and so a transport can preview the schedule.
Parameters
policy
attempt
number
Returns
number