Created
September 1, 2020 19:21
-
-
Save DScheglov/b2cd43900e65e68cc40d771c31c9bf69 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
/** @type {(ms: number) => Promise<void>} */ | |
const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
export default delay; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment