Skip to content

Instantly share code, notes, and snippets.

@evantahler
Created September 28, 2017 16:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save evantahler/b6e1f21288a3060342a24dc32df69719 to your computer and use it in GitHub Desktop.
util.promisify
const {promisify} = require('util')
async sleep (time) {
return promisify(setTimeout)(time)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment