by odyssey7 · 2y ago · 0 comments
try { concurrently { const user = await getUser(userId); const session = await getSession(sessionId); } } catch (err) { … }
try {
const [user, session] = await Promise.all([ getUser(userId), getSession(sessionId) ])