Hyperlinkv0.8.0-beta.28

Channel

Channel.flattenTakeconsteffect/Channel.ts:2963
<OutElem, OutErr, OutDone, OutErr2, OutDone2, InElem, InErr, InDone, Env>(
  self: Channel<
    Take.Take<OutElem, OutErr, OutDone>,
    OutErr2,
    OutDone2,
    InElem,
    InErr,
    InDone,
    Env
  >
): Channel<
  Arr.NonEmptyReadonlyArray<OutElem>,
  OutErr | OutErr2,
  OutDone,
  InElem,
  InErr,
  InDone,
  Env
>

Flattens a channel that emits Take values into a channel that emits the Take outputs directly.

Details

Output Take values are emitted as non-empty arrays. Failed Take values fail the returned channel. Done Take values complete the returned channel.

transforming
Source effect/Channel.ts:296314 lines
export const flattenTake = <
  OutElem,
  OutErr,
  OutDone,
  OutErr2,
  OutDone2,
  InElem,
  InErr,
  InDone,
  Env
>(
  self: Channel<Take.Take<OutElem, OutErr, OutDone>, OutErr2, OutDone2, InElem, InErr, InDone, Env>
): Channel<Arr.NonEmptyReadonlyArray<OutElem>, OutErr | OutErr2, OutDone, InElem, InErr, InDone, Env> =>
  mapEffectSequential(self, Take.toPull) as any
Referenced by 1 symbols