effect-io-ai

Package: effect
Module: Effect

Effect.scopedWith

Creates a Scope, passes it to the specified effectful function, and closes the scope when the effect completes (whether through success, failure, or interruption).

Signature

declare const scopedWith: <A, E, R>(f: (scope: Scope.Scope) => Effect<A, E, R>) => Effect<A, E, R>

Source

Since v3.11.0