@vgerbot/async
    Preparing search index...

    Class CancellableHandle<T>

    Handle for a cancellable task that extends Defer with cancellation capabilities. Provides methods to cancel the task and check its cancellation status.

    Type Parameters

    • T

      The type of the task result

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    "[CANCEL_REASON]": CancelError | null = null
    name?: string
    promise: Promise<T>
    reject: (reason?: unknown) => void
    resolve: (value: T | PromiseLike<T>) => void

    Accessors

    • get isSettled(): boolean

      Indicates whether the promise has been settled (resolved or rejected)

      Returns boolean

    • get rejectReason(): unknown

      Gets the rejection reason if the promise was rejected

      Returns unknown

    • get resolveValue(): T | undefined

      Gets the resolved value if the promise was resolved

      Returns T | undefined

    Methods