top | item 41240674

(no title)

Wazako | 1 year ago

What's wrong with making Promise.all ?

try {

  const [user, session] = await Promise.all([
    getUser(userId),
    getSession(sessionId)
  ])
} catch (err) { … }

discuss

order

No comments yet.