Skip to content

Instantly share code, notes, and snippets.

@weslleyaraujo
Created December 21, 2016 17:49
Show Gist options
  • Save weslleyaraujo/46a6fe39d236641d5ad888f3029c61f5 to your computer and use it in GitHub Desktop.
Save weslleyaraujo/46a6fe39d236641d5ad888f3029c61f5 to your computer and use it in GitHub Desktop.
export default function sleep(ms = 0) {
 return new Promise(r => setTimeout(r, ms));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment