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

Function toStepWithSleep

packages/effect/src/Schedule.ts:429–439  ·  view source on GitHub ↗
(
  schedule: Schedule<Output, Input, Error, Env>
)

Source from the content-addressed store, hash-verified

427 * @since 4.0.0
428 */
429export const toStepWithSleep = <Output, Input, Error, Env>(
430 schedule: Schedule<Output, Input, Error, Env>
431): Effect<
432 (input: Input) => Pull.Pull<Output, Error, Output, Env>,
433 never,
434 Env
435> =>
436 effect.map(
437 toStepWithMetadata(schedule),
438 (step) => (input) => effect.map(step(input), (meta) => meta.output)
439 )
440
441/**
442 * Returns a new `Schedule` that adds the delay computed by the specified

Callers

nothing calls this directly

Calls 3

toStepWithMetadataFunction · 0.85
stepFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected