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 'obsidian-dev-utils/disposable';

Signature:

export interface AsyncDisposableEx extends AsyncDisposable

Extends: AsyncDisposable

Methods

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

Links to this page: