API reference@evolu/commonSchedule › delayed

function delayed(
  initialDelay: Duration,
): <Output, Input>(
  schedule: Schedule<Output, Input>,
) => Schedule<Output, Input>;

Defined in: packages/common/src/Schedule.ts:690

Adds an initial delay before the first attempt.

Subsequent attempts use the schedule's normal delays.

Example

// Wait 1s before first attempt, then exponential backoff
const withWarmup = delayed("1s")(exponential("100ms"));