| 206 | * @since 2.0.0 |
| 207 | */ |
| 208 | export const makeRuntime = <R = never, A = unknown, E = unknown>(): Effect.Effect< |
| 209 | (<XE extends E, XA extends A>( |
| 210 | effect: Effect.Effect<XA, XE, R>, |
| 211 | options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }) | undefined |
| 212 | ) => Fiber.Fiber<XA, XE>), |
| 213 | never, |
| 214 | Scope.Scope | R |
| 215 | > => |
| 216 | Effect.flatMap( |
| 217 | make<A, E>(), |
| 218 | (self) => runtime(self)<R>() |
| 219 | ) |
| 220 | |
| 221 | /** |
| 222 | * Creates a scoped run function that forks effects into a new `FiberSet` and |