Created
October 30, 2022 15:53
-
-
Save modemlooper/a9da86004eea17448b4f5f2b43ad56ab to your computer and use it in GitHub Desktop.
Fake async await
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
async function fakeasync() { | |
const waitFor = delay => new Promise(resolve => setTimeout(resolve, delay)); | |
await waitFor(3000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment