5 ms·
What's wrong with making Promise.all ? try { const [user, session] = await Promise.all([ getUser(userId), getSession(sessionId) ]) } catch (err)
by Wazako 2y ago
What's wrong with making Promise.all ?
try {
const [user, session] = await Promise.all([
getUser(userId),
getSession(sessionId)
])
} catch (err) {
…
}