-
-
Save darkwing/8471b46ff768d5cec4571ab5b8eeb278 to your computer and use it in GitHub Desktop.
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
setInterval(async () => { | |
const result = await someAsyncFunc(); | |
// The problem is that `someAsyncFunc` could hang during one of the loops, | |
// which would allow multiple active awaits | |
}, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment