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

    Function createSyncResolvedPromise

    • Returns a single synchronous Promise instance that is already resolved with the given value. If the value passed is a promise then that promise is returned instead of creating a new synchronous promise instance. If a new instance is returned then any chained operations will execute synchronously at the point of being added (calling then()).

      Type Parameters

      • T

      Parameters

      • value: T

        The value to be used by this Promise. Can also be a Promise or a thenable to resolve.

      Returns IPromise<T>