effect-io-ai

Package: effect
Module: Micro

Micro.runPromise

Execute the Micro effect and return a Promise that resolves with the successful value of the computation.

Signature

declare const runPromise: <A, E>(effect: Micro<A, E>, options?: { readonly signal?: AbortSignal | undefined; readonly scheduler?: MicroScheduler | undefined; } | undefined) => Promise<A>

Source

Since v3.4.0