Skip to content

Instantly share code, notes, and snippets.

@JamesTheHacker
Created September 27, 2017 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesTheHacker/05ff18032834b0dc18faaa0ffadf28d4 to your computer and use it in GitHub Desktop.
Save JamesTheHacker/05ff18032834b0dc18faaa0ffadf28d4 to your computer and use it in GitHub Desktop.
// Calling wait and passing a callback
wait(1000, (err, data) => {
// Did the function return an error?
if (err) throw new Error(err);
// Output the data
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment