Last active
March 5, 2025 08:48
-
-
Save mrienstra/8aa4eeeeab2012d2aa8ffc7f5e45f280 to your computer and use it in GitHub Desktop.
Revisions
-
mrienstra revised this gist
Apr 30, 2021 . 1 changed file with 22 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,25 @@ 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)); -
mrienstra renamed this gist
Apr 30, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mrienstra created this gist
Apr 30, 2021 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ await new Promise(function (resolve) { setTimeout(function () { resolve(); }, 1000)); });