API reference@evolu/commonSchedule › collectScheduleInputs

function collectScheduleInputs<Output, Input>(
  schedule: Schedule<Output, Input>,
): Schedule<readonly Input[], Input>;

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

Collects all inputs into an array.

Each step outputs an array containing all inputs received so far. Mirror of collectAllScheduleOutputs but for inputs.

Example

// Collect all errors during retry
const errorHistory = collectScheduleInputs(take(3)(exponential("100ms")));
// After 3 retries, outputs array of all error inputs