Skip to content

AsyncDisposableEx

An AsyncDisposable that additionally exposes a convenience AsyncDisposableEx.asyncDispose method, so a stored handle can be disposed as handle.asyncDispose() instead of the clunkier handle[Symbol.asyncDispose]().

Import:

import type { AsyncDisposableEx } from '@mnaoumov/typescript-lib/disposable';

Signature:

export interface AsyncDisposableEx extends AsyncDisposable

Extends: AsyncDisposable

Properties

PropertyTypeDescription
asyncDispose() => Promise<void>Disposes the object. Delegates to this[Symbol.asyncDispose]().

Links to this page: