Created
August 8, 2018 15:39
-
-
Save chranderson/bb46c24aa96e19b788be8d50c055faff to your computer and use it in GitHub Desktop.
async delay function
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
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment