(
effect: Micro<A, E>,
options?: {
readonly signal?: AbortSignal | undefined
readonly scheduler?: MicroScheduler | undefined
} | undefined
)
| 4263 | * @category execution |
| 4264 | */ |
| 4265 | export const runPromise = <A, E>( |
| 4266 | effect: Micro<A, E>, |
| 4267 | options?: { |
| 4268 | readonly signal?: AbortSignal | undefined |
| 4269 | readonly scheduler?: MicroScheduler | undefined |
| 4270 | } | undefined |
| 4271 | ): Promise<A> => |
| 4272 | runPromiseExit(effect, options).then((exit) => { |
| 4273 | if (exit._tag === "Failure") { |
| 4274 | throw exit.cause |
| 4275 | } |
| 4276 | return exit.value |
| 4277 | }) |
| 4278 | |
| 4279 | /** |
| 4280 | * Attempt to execute the `Micro` effect synchronously and return the `MicroExit`. |
no test coverage detected