-
Notifications
You must be signed in to change notification settings - Fork 26
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
Ditch EventEmitter API #33
Comments
I'm confused by "handle the error twice", at least if all you are doing is using start, stop and increment() etc, flushing happens in the background and you're not handling it; the only way to handle errors in that case would be with I'd prefer if the worker didn't crash when Librato errored, or for the |
Good point. I was thinking in the manual flush case, you get the error from the callback and the emitter. If we decide to keep it, I agree that we should document it. |
This one just bit me, there really needs to be documentation on this. Do i understand this correctly, if i have a
I will no longer have uncaught errors when there are network issues? |
Yeah, that's right. I just added this to the readme #46 |
thanks @adborden! On Sun, Aug 9, 2015 at 7:19 PM, Aaron Borden [email protected]
|
Bit me too....thanks @adborden for adding to the docs |
We don't really document it, but librato-node extends EventEmitter and emits errors in addition to calling the callback.
This is a bit strange because:
There is only one place where we're actually using emit. Should we just drop the EventEmitter API?
The text was updated successfully, but these errors were encountered: