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

Function flatten

packages/effect/src/internal/channel.ts:499–531  ·  view source on GitHub ↗
(
  self: Channel.Channel<
    OutElem,
    InElem,
    OutErr,
    InErr,
    Channel.Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone2, InDone1, Env1>,
    InDone,
    Env
  >
)

Source from the content-addressed store, hash-verified

497
498/** @internal */
499export const flatten = <
500 OutElem,
501 InElem,
502 OutErr,
503 InErr,
504 OutElem1,
505 InElem1,
506 OutErr1,
507 InErr1,
508 OutDone2,
509 InDone1,
510 Env1,
511 InDone,
512 Env
513>(
514 self: Channel.Channel<
515 OutElem,
516 InElem,
517 OutErr,
518 InErr,
519 Channel.Channel<OutElem1, InElem1, OutErr1, InErr1, OutDone2, InDone1, Env1>,
520 InDone,
521 Env
522 >
523): Channel.Channel<
524 OutElem | OutElem1,
525 InElem & InElem1,
526 OutErr | OutErr1,
527 InErr & InErr1,
528 OutDone2,
529 InDone & InDone1,
530 Env | Env1
531> => core.flatMap(self, identity)
532
533/** @internal */
534export const foldChannel = dual<

Callers 1

unwrapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…