( service: Context.Key<I, S>, effect: Effect<S, E, R> )
| 1076 | } as any |
| 1077 | |
| 1078 | const effectImpl = <I, S, E, R>( |
| 1079 | service: Context.Key<I, S>, |
| 1080 | effect: Effect<S, E, R> |
| 1081 | ): Layer<I, E, Exclude<R, Scope.Scope>> => |
| 1082 | effectContext(internalEffect.map(effect, (value) => Context.make(service, value))) |
| 1083 | |
| 1084 | /** |
| 1085 | * Constructs a layer from an effect that produces all services in a `Context`. |
no test coverage detected