effect-io-ai

Package: effect
Module: Scope

Scope.CloseableScope

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>
}

Source

Since v2.0.0