MCPcopy Index your code
hub / github.com/Effect-TS/effect / contextWith

Function contextWith

packages/effect/src/internal/channel.ts:475–477  ·  view source on GitHub ↗
(
  f: (env: Context.Context<Env>) => OutDone
)

Source from the content-addressed store, hash-verified

473
474/** @internal */
475export const contextWith = <Env, OutDone>(
476 f: (env: Context.Context<Env>) => OutDone
477): Channel.Channel<never, unknown, never, unknown, OutDone, unknown, Env> => map(context<Env>(), f)
478
479/** @internal */
480export const contextWithChannel = <

Callers

nothing calls this directly

Calls 2

contextFunction · 0.70
mapFunction · 0.50

Tested by

no test coverage detected