MultipleDisposeBehavior
Determines how a CallbackDisposable or AsyncCallbackDisposable behaves when it is disposed more than once.
Import:
import type { MultipleDisposeBehavior } from '@mnaoumov/typescript-lib/disposable';Signature:
export enum MultipleDisposeBehaviorMembers:
| Member | Value | Description |
|---|---|---|
Invoke |
Invoke the callback on every dispose. | |
Ignore |
Invoke the callback on the first dispose only; subsequent disposes are no-ops. | |
Throw |
Invoke the callback on the first dispose only; subsequent disposes throw. |
Links to this page: