Hyperlinkv0.8.0-beta.28

Schedule

Schedule.CurrentMetadataconsteffect/Schedule.ts:121
Context.Reference<Metadata<unknown, unknown>>

Context reference containing metadata for the currently running schedule step.

Details

Repeat, retry, stream, and channel scheduling operations provide this service to effects run between schedule steps. The default value contains undefined input and output values, zero duration, and zeroed timing fields before any schedule step has produced metadata.

metadata
Source effect/Schedule.ts:12112 lines
export const CurrentMetadata = Context.Reference<Metadata>("effect/Schedule/CurrentMetadata", {
  defaultValue: constant({
    input: undefined,
    output: undefined,
    duration: Duration.zero,
    attempt: 0,
    start: 0,
    now: 0,
    elapsed: 0,
    elapsedSincePrevious: 0
  })
})
Referenced by 4 symbols