@nevware21/ts-async - v0.5.4
    Preparing search index...

    Function createSyncRejectedPromise

    • Returns a single synchronous Promise instance that is already rejected with the given reason. Any chained operations will execute synchronously at the point of being added (eg. catch(); finally()).

      Type Parameters

      • T = unknown

      Parameters

      • reason: any

        The rejection reason

      Returns IPromise<T>