@shazow/whatsabi
    Preparing search index...

    Variable AbortSignal

    AbortSignal: {
        prototype: AbortSignal;
        abort(reason?: any): AbortSignal;
        any(signals: AbortSignal[]): AbortSignal;
        timeout(milliseconds: number): AbortSignal;
        new (): AbortSignal;
    }

    Type Declaration

    • prototype: AbortSignal
    • abort: function
      • The AbortSignal.abort() static method returns an AbortSignal that is already set as aborted (and which does not trigger an abort event).

        MDN Reference

        Parameters

        • Optionalreason: any

        Returns AbortSignal

    • any: function
      • The AbortSignal.any() static method takes an iterable of abort signals and returns an AbortSignal. The returned abort signal is aborted when any of the input iterable abort signals are aborted. The abort reason will be set to the reason of the first signal that is aborted. If any of the given abort signals are already aborted then so will be the returned AbortSignal.

        MDN Reference

        Parameters

        Returns AbortSignal

    • timeout: function
      • The AbortSignal.timeout() static method returns an AbortSignal that will automatically abort after a specified time.

        MDN Reference

        Parameters

        • milliseconds: number

        Returns AbortSignal