()
| 247 | * @since 3.13.0 |
| 248 | */ |
| 249 | export const makeRuntimePromise = <R = never, A = unknown, E = unknown>(): Effect.Effect< |
| 250 | (<XE extends E, XA extends A>( |
| 251 | effect: Effect.Effect<XA, XE, R>, |
| 252 | options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }) | undefined |
| 253 | ) => Promise<XA>), |
| 254 | never, |
| 255 | R | Scope.Scope |
| 256 | > => |
| 257 | Effect.flatMap( |
| 258 | make<A, E>(), |
| 259 | (self) => runtimePromise(self)<R>() |
| 260 | ) |
| 261 | |
| 262 | const internalFiberId = -1 |
| 263 | const isInternalInterruption = Filter.toPredicate(Filter.compose( |
nothing calls this directly
no test coverage detected