( self: Effect.Effect<Layer.Layer<A, E1, R1>, E, R> )
| 1218 | |
| 1219 | /** @internal */ |
| 1220 | export const unwrapScoped = <A, E1, R1, E, R>( |
| 1221 | self: Effect.Effect<Layer.Layer<A, E1, R1>, E, R> |
| 1222 | ): Layer.Layer<A, E | E1, R1 | Exclude<R, Scope.Scope>> => { |
| 1223 | const tag = Context.GenericTag<Layer.Layer<A, E1, R1>>("effect/Layer/unwrapScoped/Layer.Layer<R1, E1, A>") |
| 1224 | return flatMap(scoped(tag, self), (context) => Context.get(context, tag)) |
| 1225 | } |
| 1226 | |
| 1227 | // ----------------------------------------------------------------------------- |
| 1228 | // logging |