Function executeUnlessAborted

  • Wraps the given Promise such that it will reject if the AbortSignal is triggered.

    Type Parameters

    • T

    Parameters

    • promise: Promise<T>
    • signal: undefined | AbortSignal

    Returns Promise<T>