Skip to content

Instantly share code, notes, and snippets.

@lorinbeer
Last active August 29, 2015 14:13
Show Gist options
  • Save lorinbeer/78d48571b3affe344aa8 to your computer and use it in GitHub Desktop.
Save lorinbeer/78d48571b3affe344aa8 to your computer and use it in GitHub Desktop.
js timeout script with bash hook
#!/bin/sh
node timeout
console.log('cluster bootstrap starting');
setTimeout(function() {console.log('cluster bootstraping complete')}, 5000);node timeout
@lorinbeer
Copy link
Author

trivial pattern for setting a timeout for a bash script stub using node
was used to demo a stubbed backend service with realistic server side processing delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment