()
| 282 | * @since 3.13.0 |
| 283 | */ |
| 284 | export const makeRuntimePromise = <R, K, A = unknown, E = unknown>(): Effect.Effect< |
| 285 | <XE extends E, XA extends A>( |
| 286 | key: K, |
| 287 | effect: Effect.Effect<XA, XE, R>, |
| 288 | options?: |
| 289 | | Effect.RunOptions & { |
| 290 | readonly onlyIfMissing?: boolean | undefined |
| 291 | } |
| 292 | | undefined |
| 293 | ) => Promise<XA>, |
| 294 | never, |
| 295 | Scope.Scope | R |
| 296 | > => |
| 297 | Effect.flatMap( |
| 298 | make<K, A, E>(), |
| 299 | (self) => runtimePromise(self)<R>() |
| 300 | ) |
| 301 | |
| 302 | const internalFiberId = -1 |
| 303 | const isInternalInterruption = Filter.toPredicate(Filter.compose( |
nothing calls this directly
no test coverage detected