Package: effect
Module: Scope
A scope that can be explicitly closed with a specified exit value.
Signature
export interface CloseableScope extends Scope, Pipeable {
readonly [CloseableScopeTypeId]: CloseableScopeTypeId
/**
* Closes this scope with the given exit value, running all finalizers.
*
* @internal
*/
close(exit: Exit.Exit<unknown, unknown>): Effect.Effect<void>
}
Since v2.0.0