MCPcopy
hub / github.com/Effect-TS/effect / LiveImpl

Class LiveImpl

packages/effect/src/TestLive.ts:39–48  ·  view source on GitHub ↗

@internal

Source from the content-addressed store, hash-verified

37
38/** @internal */
39class LiveImpl implements TestLive {
40 readonly [TestLiveTypeId]: TestLiveTypeId = TestLiveTypeId
41 constructor(readonly services: Context.Context<DefaultServices.DefaultServices>) {}
42 provide<A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> {
43 return core.fiberRefLocallyWith(
44 defaultServices.currentServices,
45 Context.merge(this.services)
46 )(effect)
47 }
48}
49
50/**
51 * @since 2.0.0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…