Comment

Comment by Wazako

What's wrong with making Promise.all ?

try {

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

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton