Skip to content

Instantly share code, notes, and snippets.

@josuecau
Created Dec 2, 2019
Embed
What would you like to do?
JavaScript setTimeout as a Promise
module.exports = delay => new Promise(resolve => setTimeout(resolve, delay))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment