Created
January 14, 2018 21:52
-
-
Save schahriar/c6e62289081d7305edf3c32a8d1c1d75 to your computer and use it in GitHub Desktop.
Control flow timers #async-await #medium
This file contains 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 immediatePromise = () => new Promise((resolve) => setImmediate(resolve)); | |
const timeoutPromise = (timeout) => new Promise((resolve) => setTimeout(resolve, timeout)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment