Skip to content

Instantly share code, notes, and snippets.

@tjjfvi
Created October 11, 2018 22:52
Show Gist options
  • Save tjjfvi/edfc53ff66384efa55660b6d57608151 to your computer and use it in GitHub Desktop.
Save tjjfvi/edfc53ff66384efa55660b6d57608151 to your computer and use it in GitHub Desktop.
Promise.delay(ms): Creates a promise that resolves in ms millisecons
Promise.delay = ms => new Promise(resolve => setTimeout(resolve, ms));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment