AsyncIterator support?
laurisvan opened this issue · comments
I am searching for a faster alternative to Node.js EventEmitter. I am using events through its AsyncIterator interface (https://nodejs.org/api/events.html#eventsonemitter-eventname-options).
EventEmitter3 claims compatibility with Node.js EventEmitter, but I did not find mentions on AsyncIterator support. Is such in plans, or should I bake my own solution on top EventEmitter3? If so, I would appreciate any pointers towards a working sample solution.
eventemitter3
is compatible with the EventEmitter
class. Everything else is outside the scope of the project.
Roger that. In my reading, hooking EventEmitter3 to events.on(, ), as in https://nodejs.org/api/events.html#eventsonemitter-eventname-options might work if the original EventEmitter API is followed (and if Node.js also uses them and not some internal API, instead).
I'll have a quick try soonish and let you know how it went.