effect-io-ai

Package: effect
Module: Micro

Micro.sync

Creates a Micro effect that succeeds with a lazily evaluated value.

If the evaluation of the value throws an error, the effect will fail with a Die variant of the MicroCause type.

Signature

declare const sync: <A>(evaluate: LazyArg<A>) => Micro<A>

Source

Since v3.4.0