| 182 | * |
| 183 | * // The second fiber will interrupt the first |
| 184 | * const resultA = yield* Fiber.await(fiberA) |
| 185 | * const resultB = yield* Fiber.await(fiberB) |
| 186 | * return [resultA, resultB] |
| 187 | * }).pipe(Effect.scoped) |
| 188 | * |
| 189 | * const actual = await Effect.runPromise(program) |
| 190 | * actual // => [Exit.failCause(Cause.interrupt(-1)), Exit.succeed("second")] |
| 191 | * ``` |
| 192 | * |
| 193 | * @category constructors |
| 194 | * @since 2.0.0 |
| 195 | */ |
| 196 | export const makeRuntime = <R, E = unknown, A = unknown>(): Effect.Effect< |
| 197 | <XE extends E, XA extends A>( |
| 198 | effect: Effect.Effect<XA, XE, R>, |
| 199 | options?: |
| 200 | | { |
| 201 | readonly signal?: AbortSignal | undefined |
| 202 | readonly scheduler?: Scheduler | undefined |
| 203 | readonly onlyIfMissing?: boolean | undefined |
| 204 | readonly propagateInterruption?: boolean | undefined |
| 205 | } |