-
-
Save ludndev/cef93d4966e2b17c867ec867a7737fb9 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
| await new Promise(function (resolve) { | |
| setTimeout(function () { | |
| resolve(); | |
| }, 1000); | |
| }); | |
| // ... Can be shortened to: | |
| await new Promise(function (resolve) { | |
| setTimeout(resolve, 1000); | |
| }); | |
| // ... Can be shortened to: | |
| await new Promise((resolve) => { | |
| setTimeout(resolve, 1000); | |
| }); | |
| // ... Can be shortened to: | |
| await new Promise((resolve) => setTimeout(resolve, 1000)); | |
| // ... Can be shortened to: | |
| await new Promise(resolve => setTimeout(resolve, 1000)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment