Created
January 14, 2018 11:02
-
-
Save schahriar/9645c2ae29903a3459e9f8f13f1d4bf1 to your computer and use it in GitHub Desktop.
Control flow parallel #async-await #medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const [user1, user2] = await Promise.all([db.get('user1'), db.get('user2')]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment