rvagg/node-worker-farm

emitting events

notslang opened this issue · 5 comments

It would be really nice if workers could emit events for dealing with things other than the return value of the job... Perhaps an interface similar to webworker-threads?

Thoughts?

@slang800 as in events emitted from the workers themselves, like progress events? or are we talking about meta information about work-farm itself?

events emitted by the workers themselves, like progress events. meta-info about the workers, would be useful too, but that's a separate thread.

I haven't had my head in this code for a while but I think the main thing I'd be concerned about is the additional complexity it would add. If you can find a way that doesn't break the API and doesn't add too much complexity then you'd have my +1.

I had the same feature requirement, and implemented it as c2841b1. Please let me know what you think.

rvagg commented

see #69