Rate this page:

promiseWithResolvers

Copy URL
promiseWithResolvers(): 

{promise: Promise<T>, reject: (reason: any) => void, resolve: (value: PromiseLike) => void}

Returns

  • type:

    {promise: Promise<T>, reject: (reason: any) => void, resolve: (value: PromiseLike) => void}