Skip to content

Ditch EventEmitter API #33

@adborden

Description

@adborden

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:

  1. It's not documented.
  2. You have to handle the error twice, or at least setup two handlers.

There is only one place where we're actually using emit. Should we just drop the EventEmitter API?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions