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

Function context

packages/effect/src/internal/stm/core.ts:412–413  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

410
411/** @internal */
412export const context = <R>(): STM.STM<Context.Context<R>, never, R> =>
413 effect<R, Context.Context<R>>((_, __, env) => env)
414
415/** @internal */
416export const contextWith = <R0, R>(f: (environment: Context.Context<R0>) => R): STM.STM<R, never, R0> =>

Callers 2

contextWithFunction · 0.70
contextWithSTMFunction · 0.70

Calls 1

effectFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…