A function to be executed during the creation of a promise instance. It receives two functions as parameters: resolve and reject.
Any errors thrown in the executor will cause the promise to be rejected, and the return value will be neglected. The semantics of executor are detailed below.
A function to be executed during the creation of a promise instance. It receives two functions as parameters: resolve and reject. Any errors thrown in the executor will cause the promise to be rejected, and the return value will be neglected. The semantics of executor are detailed below.