MCPcopy Index your code
hub / github.com/Effect-TS/effect / fromSchedule

Function fromSchedule

packages/effect/src/internal/stream.ts:3228–3233  ·  view source on GitHub ↗
(schedule: Schedule.Schedule<A, unknown, R>)

Source from the content-addressed store, hash-verified

3226
3227/** @internal */
3228export const fromSchedule = <A, R>(schedule: Schedule.Schedule<A, unknown, R>): Stream.Stream<A, never, R> =>
3229 pipe(
3230 Schedule.driver(schedule),
3231 Effect.map((driver) => repeatEffectOption(driver.next(void 0))),
3232 unwrap
3233 )
3234
3235/** @internal */
3236export const fromReadableStream: {

Callers

nothing calls this directly

Calls 4

repeatEffectOptionFunction · 0.85
pipeFunction · 0.70
mapMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected