The type of the resolved value
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
OptionalonFinally: OnFinallyFnThe callback to execute when the Promise is settled
A Promise for the completion of the callback
Attaches callbacks for the resolution and/or rejection of the Promise. This method also handles progress tracking when used with Promise.all and a callback.
A Promise for the completion of which ever callback is executed
StaticallCreates a Promise that resolves when all input promises resolve, with optional progress callback. The callback function is called whenever a promise in the array resolves or rejects, providing real-time progress information.
Array of promises to wait for
Optionalcallback: RnPromiseCallbackOptional callback function to monitor progress
A Promise that resolves with an array of all resolved values
StaticraceCreates a Promise that resolves or rejects as soon as one of the input promises resolves or rejects.
Array of promises to race
A Promise that resolves or rejects with the value/reason of the first settled promise
StaticrejectCreates a Promise that is rejected with the given error.
The error to reject with
A rejected Promise
Staticresolve
Extended Promise class that provides additional functionality including progress callbacks for Promise.all operations. This class wraps the native Promise and adds monitoring capabilities for batch promise operations.