⛄ Snowberb ⛄ – 08-58 May 19
How can I wait for multiple async functions to complete simultaneously? Promise.all but using async await
11 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
But I dont want to use Promise.all
I know this can be done without using Promises
My example is:
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
But I want them to start fetching at the same time
Sorry for not specifying
I want to call them both at the same time, and wait until both of them finish
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Yes but then async await came into play, and instead of using Promise.all().then you could do this in a cleaner way with try catch
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Sorry for wasting your time gristoi, you helped me remember what I needed from what you said
This is what I meant
thank you!
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
you're right im tripping
This thread hasn’t had any activity in 12 hours, so it’s now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/976770864458653696