Created
July 30, 2020 18:54
-
-
Save rahulsmehta/36f9f44355cac55b9608afef2b71630c to your computer and use it in GitHub Desktop.
wait
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
private async wait<T>(ms, value: T): Promise<T> { | |
return new Promise(resolve => setTimeout(resolve, ms, value)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment