Vinyl
    Preparing search index...

    Interface ReadonlyAbort

    interface ReadonlyAbort {
        nativeSignal: null | AbortSignal;
        reason: null | Error;
        aborted(): boolean;
        hasAnyListeners(): boolean;
        hasListeners(type: "abort"): boolean;
        on<K extends "abort">(
            type: K,
            handler: EventHandler<AbortEventMap[K]>,
            options?: SignalOptions,
        ): Unsubscribe;
        onAborted(callback: (event: AbortEvent) => void): Unsubscribe;
        throwIfAborted(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    nativeSignal: null | AbortSignal

    Returns a native signal on supported platforms.

    reason: null | Error

    The reason passed to abort.

    Methods

    • True if aborted.

      Returns boolean

    • Returns true if the event host has any listeners.

      Returns boolean

    • Returns true if the event host has any listeners for the given type.

      Parameters

      • type: "abort"

      Returns boolean

    • Invokes a callback on 'abort', or immediately if already aborted.

      Parameters

      Returns Unsubscribe

    • Throws the signal's abort reason if the signal has been aborted; otherwise it does nothing.

      Returns void