AsyncDisposableScope Interface
Package: @esfx/disposable
Declaration
export interface AsyncDisposableScope
Methods
fail(error)
Tracks an exception from the body of a for..of
statement. See scope().
Declaration
fail(error: unknown): void;
Parameters
- error
- unknown
Returns
void
using(value)
Tracks a resource to be disposed at the end of a for..of
statement. See scope().
Declaration
using<T extends Disposable | AsyncDisposable | null | undefined>(value: T): T;
Type Parameters
- T
Parameters
- value
- T
Returns
T