close
function close( scope: Closeable, exit: Exit<unknown, unknown>,): Effect<void, never, never>Defined in: Release.ts:22
Closes a scope without losing interrupted finalizers through enclosing cancellation. When the release cause contains only interrupts, pending external cancellation remains an Interrupt; release itself becomes a ReleaseInterrupted defect carrying the original cause. Causes containing other failures remain unchanged.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
scope |
Closeable |
exit |
Exit<unknown, unknown> |
Returns
Section titled “Returns”Effect<void, never, never>