This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
readline = require("readline") | |
log = console.log | |
rl = readline.createInterface( | |
input: process.stdin | |
output: process.stdout | |
) | |
asyncTask = (cb) -> | |
log "starting task" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
skeleton of a Paranoid Pirate Pattern with a worker that is randomly slow | |
(needs heartbeating, queuing and retry to be fully fleshed out) | |
### | |
zmq = require("zmq") | |
delay = process.argv[2] or 1000 | |
log = console.log | |
debugger |