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

Function contextWith

packages/effect/src/internal/stm/core.ts:416–417  ·  view source on GitHub ↗
(f: (environment: Context.Context<R0>) => R)

Source from the content-addressed store, hash-verified

414
415/** @internal */
416export const contextWith = <R0, R>(f: (environment: Context.Context<R0>) => R): STM.STM<R, never, R0> =>
417 map(context<R0>(), f)
418
419/** @internal */
420export const contextWithSTM = <R0, A, E, R>(

Callers

nothing calls this directly

Calls 2

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…