()
| 258 | * @since 3.13.0 |
| 259 | */ |
| 260 | export const makeRuntimePromise = <R = never, A = unknown, E = unknown>(): Effect.Effect< |
| 261 | (<XE extends E, XA extends A>( |
| 262 | effect: Effect.Effect<XA, XE, R>, |
| 263 | options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }) | undefined |
| 264 | ) => Promise<XA>), |
| 265 | never, |
| 266 | R | Scope.Scope |
| 267 | > => |
| 268 | Effect.flatMap( |
| 269 | make<A, E>(), |
| 270 | (self) => runtimePromise(self)<R>() |
| 271 | ) |
| 272 | |
| 273 | const internalFiberId = -1 |
| 274 | const isInternalInterruption = Filter.toPredicate(Filter.compose( |
nothing calls this directly
no test coverage detected