Last active
May 13, 2020 10:29
-
-
Save abegehr/9803f4908186ad878167400a6fb7be8d to your computer and use it in GitHub Desktop.
sleepjs async sleep and alert
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
// https://github.com/simsieg/sleepjs | |
const { sleep } = require('sleepjs') | |
async function myFunction() => { | |
await sleep(500); | |
alert("Hello"); | |
} | |
myFunction(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment