hosanna-ui-docs - v0.9.0
    Preparing search index...

    Interface CancellationToken

    Interface representing a cancellation token. Used to signal and handle cancellation of asynchronous operations.

    interface CancellationToken {
        isCancellationRequested(): boolean;
        throwIfCancellationRequested(): void;
    }

    Implemented by

    Index

    Methods

    • Throws an exception if cancellation has been requested.

      Returns void

      OperationCanceledException if isCancellationRequested is true.