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

Function fromSchedule

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

Source from the content-addressed store, hash-verified

3264
3265/** @internal */
3266export const fromSchedule = <A, R>(schedule: Schedule.Schedule<A, unknown, R>): Stream.Stream<A, never, R> =>
3267 pipe(
3268 Schedule.driver(schedule),
3269 Effect.map((driver) => repeatEffectOption(driver.next(void 0))),
3270 unwrap
3271 )
3272
3273/** @internal */
3274export 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