()
| 269 | * @since 3.13.0 |
| 270 | */ |
| 271 | export const makeRuntimePromise = <R, K, A = unknown, E = unknown>(): Effect.Effect< |
| 272 | <XE extends E, XA extends A>( |
| 273 | key: K, |
| 274 | effect: Effect.Effect<XA, XE, R>, |
| 275 | options?: |
| 276 | | Effect.RunOptions & { |
| 277 | readonly onlyIfMissing?: boolean | undefined |
| 278 | } |
| 279 | | undefined |
| 280 | ) => Promise<XA>, |
| 281 | never, |
| 282 | Scope.Scope | R |
| 283 | > => |
| 284 | Effect.flatMap( |
| 285 | make<K, A, E>(), |
| 286 | (self) => runtimePromise(self)<R>() |
| 287 | ) |
| 288 | |
| 289 | const internalFiberId = -1 |
| 290 | const isInternalInterruption = Filter.toPredicate(Filter.compose( |
nothing calls this directly
no test coverage detected