UNPKG

@dolittle/sdk.resilience

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

25 lines 825 B
import { Cancellation } from './Cancellation'; /** * Represents a source of a {@link Cancellation}. */ export declare class CancellationSource { private readonly _subject; /** * Initializes a new instance of {@link CancellationSource}. * @param {Cancellation[]} sources - A set of {@link Cancellation} to link to this source. */ constructor(...sources: Cancellation[]); /** * Cancel the {@link Cancellation} of the {@link CancellationSource}. */ cancel(): void; /** * Gets the {@link Cancellation} for the {@link CancellationSource}. */ readonly cancellation: Cancellation; /** * Gets a value indicating wheter or not the {@link CancellationSource} is cancelled. */ get cancelled(): boolean; } //# sourceMappingURL=CancellationSource.d.ts.map