This is just a curiosity that I have more than anything, but if I call an event using hook.emit and supply a callback but there is nothing listening on the other end for that event does it cause a leak of any kind? I would think that it would strand the instance of the callback function since it will never get back a "result" response that will trigger the callback itself. Or is this one of those occasions where node-weak takes care of letting the GC cleanup these callbacks for us? In the latter case, what happens when you have a very long running process that may return the result many hours, days later?
As I said, just curious more than anything. I don't have any issues, nor have I found a case for this happening outside of a development environment.
- Jeremy