@internal
| 37 | |
| 38 | /** @internal */ |
| 39 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…