effect-io-ai

Package: effect
Module: Effect

Effect.sequentialFinalizers

Ensures that finalizers are run sequentially in reverse order of their addition.

Details

This function modifies the behavior of finalizers within a scoped workflow to ensure they are run sequentially in reverse order when the scope is closed.

By default, finalizers are executed sequentially, so this only changes the behavior if the scope is configured to run finalizers concurrently.

See

Signature

declare const sequentialFinalizers: <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>

Source

Since v2.0.0