The function to be executed during the creation of the promise. Any errors thrown in the executor will cause the promise to be rejected. The return value of the executor is always ignored
Optional
timeout: number[Optional] timeout to wait before processing the items, defaults to zero.
Creates a Promise instance using the current default promise creator that when resolved or rejected will execute it's pending chained operations.