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

Function flattenTake

packages/effect/src/Channel.ts:3291–3304  ·  view source on GitHub ↗
(
  self: Channel<Take.Take<OutElem, OutErr, OutDone>, OutErr2, OutDone2, InElem, InErr, InDone, Env>
)

Source from the content-addressed store, hash-verified

3289 * @since 4.0.0
3290 */
3291export const flattenTake = <
3292 OutElem,
3293 OutErr,
3294 OutDone,
3295 OutErr2,
3296 OutDone2,
3297 InElem,
3298 InErr,
3299 InDone,
3300 Env
3301>(
3302 self: Channel<Take.Take<OutElem, OutErr, OutDone>, OutErr2, OutDone2, InElem, InErr, InDone, Env>
3303): Channel<Arr.NonEmptyReadonlyArray<OutElem>, OutErr | OutErr2, OutDone, InElem, InErr, InDone, Env> =>
3304 mapEffectSequential(self, Take.toPull) as any
3305
3306/**
3307 * Creates a new channel that consumes all output from the source channel

Callers

nothing calls this directly

Calls 1

mapEffectSequentialFunction · 0.85

Tested by

no test coverage detected