LearnBoost / cluster

Node.JS multi-core server manager with plugins support.
http://learnboost.github.com/cluster
MIT License
2.29k stars 159 forks source link

async startup #78

Closed donpark closed 13 years ago

donpark commented 13 years ago

Any plan to support apps that starts up asynchronously? The fact that node's require neither blocks nor support callback is getting in the way of making my app cluster-ready.

tj commented 13 years ago

node's require does block

donpark commented 13 years ago

I meant blocking cannot be controlled. It just blocks while the module load and evaluates. If I need to defer returning until, say connection completes, I don't see a way to do that.

tj commented 13 years ago

you can do whatever you want as far as deferring the listen() call, but I kinda see what you mean, it would be kinda nice to have this functionality for plugins as well so they can defer until they are ready, but usually irrelevant