effect-io-ai

Package: effect
Module: Micro

Micro.onExit

When the Micro effect is completed, run the given finalizer effect with the MicroExit of the executed effect.

Signature

declare const onExit: { <A, E, XE, XR>(f: (exit: MicroExit<A, E>) => Micro<void, XE, XR>): <R>(self: Micro<A, E, R>) => Micro<A, E | XE, R | XR>; <A, E, R, XE, XR>(self: Micro<A, E, R>, f: (exit: MicroExit<A, E>) => Micro<void, XE, XR>): Micro<A, E | XE, R | XR>; }

Source

Since v3.4.6