bchociej / bobbin

easily spool up thread-like worker processes in node with bobbin
Other
4 stars 0 forks source link

handle repetitive/long-running work #17

Open bchociej opened 9 years ago

bchociej commented 9 years ago

this will require some thought. how to stop these once started, for example.

repetitive:

pool.run (cb) ->
    i = 0
    setInterval( -> cb(i++) , 1000)

long-running:

pool.run -> doWorkForever()