effect-io-ai

Package: effect
Module: Micro

Micro.fail

Creates a Micro effect that fails with the given error.

This results in a Fail variant of the MicroCause type, where the error is tracked at the type level.

Signature

declare const fail: <E>(error: E) => Micro<never, E>

Source

Since v3.4.0