EVT - A type safe replacement for node's EventEmitter
source link: https://www.evt.land/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
EventEmitter's typesafe replacement
At Connext, we are building complex, distributed systems that rely heavily on event-driven processes. We eventually found that the capabilities of the Node.js EventEmitter could not handle some of our more complex event-based needs such as attaching an event based on a filter. We are grateful to have found EVT as a suitable replacement which gives us strong typing and a powerful API for all of our eventing needs. We were able to eliminate a lot of boilerplate and complicated code around resolving promises and detaching listeners by using waitFor. We have also exposed the EVT interface through our API so our users can make use of these powerful features.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK