( self: Layer.Layer<ROut, E, RIn> )
| 1083 | |
| 1084 | /** @internal */ |
| 1085 | export const toRuntime = <RIn, E, ROut>( |
| 1086 | self: Layer.Layer<ROut, E, RIn> |
| 1087 | ): Effect.Effect<Runtime.Runtime<ROut>, E, RIn | Scope.Scope> => |
| 1088 | pipe( |
| 1089 | fiberRuntime.scopeWith((scope) => buildWithScope(self, scope)), |
| 1090 | core.flatMap((context) => |
| 1091 | pipe( |
| 1092 | runtime.runtime<ROut>(), |
| 1093 | core.provideContext(context) |
| 1094 | ) |
| 1095 | ) |
| 1096 | ) |
| 1097 | |
| 1098 | /** @internal */ |
| 1099 | export const toRuntimeWithMemoMap = dual< |