Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add event emitters for events related to workers (spawn, died) #9

Open
panthershark opened this issue Oct 29, 2014 · 0 comments
Open

Comments

@panthershark
Copy link
Member

Add event emitters which emit worker events via the mixdown object.

Usage

mixdown.on('worker-spawn', function(worker) {
  // do something with the new child.
});

mixdown.on('worker-ready', function(worker) {
  // do something now that the new child is ready to take requests (e.g. init is complete)
});

mixdown.on('worker-died', function(worker) {
  // do something about the death of the worker.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant