MCPcopy Create free account
hub / github.com/Effect-TS/effect / spaced

Function spaced

packages/effect/src/Schedule.ts:1198–1201  ·  view source on GitHub ↗
(duration: Duration.Input)

Source from the content-addressed store, hash-verified

1196 * @since 2.0.0
1197 */
1198export const spaced = (duration: Duration.Input): Schedule<number> => {
1199 const decoded = Duration.fromInputUnsafe(duration)
1200 return fromStepWithMetadata(effect.succeed((meta) => effect.succeed([meta.attempt - 1, decoded])))
1201}
1202
1203/**
1204 * Returns a new `Schedule` that allows execution of an effectful function for

Callers 1

Schedule.tsFile · 0.85

Calls 2

fromStepWithMetadataFunction · 0.85
succeedMethod · 0.45

Tested by

no test coverage detected