MCPcopy
hub / github.com/Effect-TS/effect / contextWithChannel

Function contextWithChannel

packages/effect/src/internal/channel.ts:480–491  ·  view source on GitHub ↗
(
  f: (env: Context.Context<Env>) => Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env1>
)

Source from the content-addressed store, hash-verified

478
479/** @internal */
480export const contextWithChannel = <
481 Env,
482 OutElem,
483 InElem,
484 OutErr,
485 InErr,
486 OutDone,
487 InDone,
488 Env1
489>(
490 f: (env: Context.Context<Env>) => Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env1>
491): Channel.Channel<OutElem, InElem, OutErr, InErr, OutDone, InDone, Env | Env1> => core.flatMap(context<Env>(), f)
492
493/** @internal */
494export const contextWithEffect = <Env, OutDone, OutErr, Env1>(

Callers 1

channel.tsFile · 0.85

Calls 1

contextFunction · 0.70

Tested by

no test coverage detected