The promise.resolve has two parameters. But when use async/await, I only get the first para, how can I get all of two parameters?
const a = () => new Promise((resolve, reject) => {
resolve({a: 1}, {b: 2});
}).catch((rerr) => {
logger.error(rerr.stack);
return null;
});
async function b() {
console.log(await a());
}
b();