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

Function suspend

packages/effect/src/Stream.ts:790–791  ·  view source on GitHub ↗
(stream: LazyArg<Stream<A, E, R>>)

Source from the content-addressed store, hash-verified

788 * @since 2.0.0
789 */
790export const suspend = <A, E, R>(stream: LazyArg<Stream<A, E, R>>): Stream<A, E, R> =>
791 fromChannel(Channel.suspend(() => stream().channel))
792
793/**
794 * Terminates with the specified error.

Callers 1

Stream.tsFile · 0.70

Calls 2

fromChannelFunction · 0.70
streamFunction · 0.70

Tested by

no test coverage detected