Skip to content

Instantly share code, notes, and snippets.

@brendanmckenzie
Created November 2, 2015 00:38
Show Gist options
  • Save brendanmckenzie/442c9206c4b8f53249b9 to your computer and use it in GitHub Desktop.
Save brendanmckenzie/442c9206c4b8f53249b9 to your computer and use it in GitHub Desktop.
function timeoutSleep(milliseconds, callbackFunction) {
window.setTimeout(
function () {
callbackFunction();
}, milliseconds);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment