Skip to content

MultipleDisposeBehavior

Determines how a CallbackDisposable or AsyncCallbackDisposable behaves when it is disposed more than once.

Import:

import type { MultipleDisposeBehavior } from 'obsidian-dev-utils/disposable';

Signature:

export enum MultipleDisposeBehavior

Members:

MemberValueDescription
InvokeInvoke the callback on every dispose.
IgnoreInvoke the callback on the first dispose only; subsequent disposes are no-ops.
ThrowInvoke the callback on the first dispose only; subsequent disposes throw.

Links to this page: