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

Function contextWith

packages/effect/src/internal/stream.ts:2464–2465  ·  view source on GitHub ↗
(f: (env: Context.Context<R>) => A)

Source from the content-addressed store, hash-verified

2462
2463/** @internal */
2464export const contextWith = <R, A>(f: (env: Context.Context<R>) => A): Stream.Stream<A, never, R> =>
2465 pipe(context<R>(), map(f))
2466
2467/** @internal */
2468export const contextWithEffect = <R0, A, E, R>(

Callers

nothing calls this directly

Calls 3

pipeFunction · 0.70
contextFunction · 0.70
mapFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…