@nospamproxy/core
    Preparing search index...

    Class RetryFetchPromise

    Extending the Promise class does not work as expected in TS. Refer:

    Implements

    • Promise<unknown>
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    "[toStringTag]": string = promiseStringTag
    lookup: WeakMap<Partial<RemoteCallOptions>, RetryFetchPromise> = ...

    Methods

    • Attaches a callback for only the rejection of the Promise.

      Type Parameters

      • TResult = never

      Parameters

      • Optionalonrejected: ((reason: unknown) => TResult | PromiseLike<TResult>) | null

        The callback to execute when the Promise is rejected.

      Returns Promise<unknown>

      A Promise for the completion of the callback.

    • Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.

      Parameters

      • Optionalonfinally: (() => void) | null

        The callback to execute when the Promise is settled (fulfilled or rejected).

      Returns Promise<unknown>

      A Promise for the completion of the callback.

    • Attaches callbacks for the resolution and/or rejection of the Promise.

      Type Parameters

      • TResult1 = unknown
      • TResult2 = never

      Parameters

      • Optionalonfulfilled: ((value: unknown) => TResult1 | PromiseLike<TResult1>) | null

        The callback to execute when the Promise is resolved.

      • Optionalonrejected: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null

        The callback to execute when the Promise is rejected.

      Returns Promise<TResult1 | TResult2>

      A Promise for the completion of which ever callback is executed.