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

Function drain

packages/effect/src/Stream.ts:2406–2406  ·  view source on GitHub ↗
(self: Stream<A, E, R>)

Source from the content-addressed store, hash-verified

2404 * @since 2.0.0
2405 */
2406export const drain = <A, E, R>(self: Stream<A, E, R>): Stream<never, E, R> => fromChannel(Channel.drain(self.channel))
2407
2408/**
2409 * Runs the provided stream in the background while this stream runs, interrupting it

Callers

nothing calls this directly

Calls 2

drainMethod · 0.80
fromChannelFunction · 0.70

Tested by

no test coverage detected