effect-io-ai

Package: effect
Module: Micro

Micro.promise

Wrap a Promise into a Micro effect.

Any errors will result in a Die variant of the MicroCause type, where the error is not tracked at the type level.

Signature

declare const promise: <A>(evaluate: (signal: AbortSignal) => PromiseLike<A>) => Micro<A>

Source

Since v3.4.0