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

Function suspend

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

Source from the content-addressed store, hash-verified

6466
6467/** @internal */
6468export const suspend = <A, E, R>(stream: LazyArg<Stream.Stream<A, E, R>>): Stream.Stream<A, E, R> =>
6469 new StreamImpl(core.suspend(() => toChannel(stream())))
6470
6471/** @internal */
6472export const take = dual<

Callers 6

stream.tsFile · 0.70
fromIterableFunction · 0.70
rangeFunction · 0.70
syncFunction · 0.70
unfoldChunkEffectFunction · 0.70
encodeTextFunction · 0.70

Calls 2

toChannelFunction · 0.70
streamFunction · 0.50

Tested by

no test coverage detected