Methods
(static) objectWrapper(promise) → {ArrayLike}
- Source:
objectWrapper
Example
var [p1Error, p1Result] = await objectWrapper(promise1)
console.log(p1Error, p1Result)
Parameters:
Name | Type | Description |
---|---|---|
promise |
Promise | Promise 化的执行体 |
Returns:
- Type
- ArrayLike