4 ms·JavaScript can sleep7 points by viebel 10y agok__ 10y agoIs it necessary to mark the sleep function as async? I had the impression every function that returns a promise could be "await"ed.viebel 10y agoGive it a try. And you'll know... You can use the babel online repl https://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=es2017 https://babeljs.io/repl/#?babili=false&evaluate=true&lineWra...k__ 10y agoYes, I was right.