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