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

Function effectContext

packages/effect/src/Layer.ts:1073–1075  ·  view source on GitHub ↗
(
  effect: Effect<Context.Context<A>, E, R>
)

Source from the content-addressed store, hash-verified

1071 * @since 2.0.0
1072 */
1073export const effectContext = <A, E, R>(
1074 effect: Effect<Context.Context<A>, E, R>
1075): Layer<A, E, Exclude<R, Scope.Scope>> => fromBuildMemo((_, scope) => Scope.provide(effect, scope))
1076
1077/**
1078 * Constructs a layer from an effect, discarding its value and providing no

Callers 2

effectImplFunction · 0.85
effectDiscardFunction · 0.85

Calls 2

fromBuildMemoFunction · 0.85
provideMethod · 0.45

Tested by

no test coverage detected