| 197 | * @since 2.0.0 |
| 198 | */ |
| 199 | export const makeRuntime = <R = never, A = unknown, E = unknown>(): Effect.Effect< |
| 200 | (<XE extends E, XA extends A>( |
| 201 | effect: Effect.Effect<XA, XE, R>, |
| 202 | options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }) | undefined |
| 203 | ) => Fiber.Fiber<XA, XE>), |
| 204 | never, |
| 205 | Scope.Scope | R |
| 206 | > => |
| 207 | Effect.flatMap( |
| 208 | make<A, E>(), |
| 209 | (self) => runtime(self)<R>() |
| 210 | ) |
| 211 | |
| 212 | /** |
| 213 | * Creates a scoped run function that forks effects into a new `FiberSet` and |