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

Function contextWithSTM

packages/effect/src/internal/stm/core.ts:420–422  ·  view source on GitHub ↗
(
  f: (environment: Context.Context<R0>) => STM.STM<A, E, R>
)

Source from the content-addressed store, hash-verified

418
419/** @internal */
420export const contextWithSTM = <R0, A, E, R>(
421 f: (environment: Context.Context<R0>) => STM.STM<A, E, R>
422): STM.STM<A, E, R0 | R> => flatMap(context<R0>(), f)
423
424/** @internal */
425export class STMDriver<in out R, out E, out A> {

Callers

nothing calls this directly

Calls 1

contextFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…