Global promise store allowing user-provided promises允许用户提供承诺的全局承诺存储
deprecated
Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.不推荐设置自定义promise库,下一个主要版本将仅使用全局promise构造函数。
Get the stored promise library, or resolves passed in获取存储的promise库或传入的解析
deprecated
Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.不推荐设置自定义promise库,下一个主要版本将仅使用全局promise构造函数。
Returns 返回 null | PromiseConstructor
Static set
set(lib: null | PromiseConstructor): void
Sets the promise library设置承诺库
deprecated
Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.不推荐设置自定义promise库,下一个主要版本将仅使用全局promise构造函数。
Parameters参数
lib: null | PromiseConstructor
Returns 返回 void
Static validate
validate(lib: unknown): lib is PromiseConstructor
Validates the passed in promise library验证传入的promise库
deprecated
Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.不推荐设置自定义promise库,下一个主要版本将仅使用全局promise构造函数。
Global promise store allowing user-provided promises允许用户提供承诺的全局承诺存储Setting a custom promise library is deprecated the next major version will use the global Promise constructor only.不推荐设置自定义promise库,下一个主要版本将仅使用全局promise构造函数。