Skip to content

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 DisposeErrorBehavior

Members:

MemberValueDescription
AggregateDispose 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.
FailFastRe-throw the first error a child throws immediately, leaving the remaining children undisposed.

Links to this page: