create a promise with timeout, if time is up but no result/error resolved by promise, will throw an error
the promise executor
the timeout in milliseconds, e.g. 10000 means 10 seconds, and default value is 60 seconds
5.14.0
create a promise with timeout, if time is up but no result/error resolved by promise, will throw an error