kuji
Asynchronous Control Flow library for Node.
Browsers are not supported yet, it will be added later.
Control Flow
kuji.inline
kuji.inline
runs tasks in-line:
var kuji = ;kuji;
kuji.parallel
kuji.parallel
runs tasks in parallel and goes to the final callback when all tasks finished:
var kuji = ;kuji;
kuji.graph
kuji.graph
permits you to easily run tasks graphs:
You can see that D will be executed once its dependencies (A and B) are finished, permitting you to be sure that the data you need from these tasks will be available.
For the moment you need to use a closure to share data between tasks, but this will be patched in the next few days.
var kuji =dependsOn = kuji_dependsOn;kuji;
Coming next
- Error handling through next()
- Passing values through next()
- Benchmark
- Perfomance optimization
Testing
To run the tests :
mocha
License
MIT