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

Function context

packages/effect/src/internal/stream.ts:2454–2454  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2452
2453/** @internal */
2454export const context = <R>(): Stream.Stream<Context.Context<R>, never, R> => fromEffect(Effect.context<R>())
2455
2456/** @internal */
2457export const contextWith = <R, A>(f: (env: Context.Context<R>) => A): Stream.Stream<A, never, R> =>

Callers 3

contextWithFunction · 0.70
contextWithEffectFunction · 0.70
contextWithStreamFunction · 0.70

Calls 2

fromEffectFunction · 0.70
contextMethod · 0.65

Tested by

no test coverage detected