DisposeErrorBehavior
Determines the error semantics of a CombineDisposable or CombineAsyncDisposable when one of its children throws while being disposed.
Import:
import type { DisposeErrorBehavior } from 'obsidian-dev-utils/disposable';Signature:
export enum DisposeErrorBehaviorMembers:
| Member | Value | Description |
|---|---|---|
Aggregate | Dispose every child even if some of them throw, collecting the thrown errors and re-throwing them as a single AggregateError once all children have been disposed. | |
FailFast | Re-throw the first error a child throws immediately, leaving the remaining children undisposed. |
Links to this page: