co-spawn
setImmediate for the co generator framework
Calling setImmediate in a co-friendly way is painful and you have to launch co() in your setImmediate function. This is a simple wrapper.
Installation
This module is installed via npm:
$ npm install co-spawn
Example Usage
Non-blocking spawn
var spawn = ;;{// this will run lastccounter++;to;;}
Blocking spawn
If for some reason you want to block on the spawn, just yield:
var spawn = ;;{// this will run 2ndccounter++;to;;}