Tip: With async/await, you can run multiple async operations in parallel


Tip: With async/await, you can run multiple async operations in parallel. How? Put the await statements on the same line! Works like promise.all.

https://buff.ly/2zvoLOs

#javascript

@belkosyak Two corrections:
1. Same line isn't the key. Key is to initialize all first, then await.
2. JS is single-threaded, so it runs concurrently, not parallel. https://stackoverflow.com/questions/1897993/what-is-the-difference-between-concurrent-programming-and-parallel-programming

View original on X