The promise to wrap with timeout 要添加超时的 Promise
Timeout duration in milliseconds 超时时间(毫秒)
Error message or Error object for timeout (default: 'Operation timeout') 超时时使用的错误消息或 Error 对象(默认:'Operation timeout')
A promise that either resolves/rejects with the original promise or rejects on timeout 返回一个 Promise,要么随原始 Promise 完成/拒绝,要么在超时时拒绝
Wraps a promise with a timeout 为 Promise 添加超时包装