Created
January 15, 2021 01:50
-
-
Save nafeu/91d27aa98d25ef152ce438075cb52ab8 to your computer and use it in GitHub Desktop.
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
| async function main() { | |
| let count = 0; | |
| const max = 5; | |
| while (count < max) { | |
| const result = await delay(() => `${++count} of ${max} lines...`, 1000); | |
| console.log(result); | |
| } | |
| } | |
| main(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment