jfhbrook / pyee

A rough port of Node.js's EventEmitter to Python with a few tricks of its own
https://github.com/jfhbrook/public
MIT License
371 stars 39 forks source link

v6.0.0 - Separate classes #46

Closed jfhbrook closed 5 years ago

jfhbrook commented 6 years ago

This rearchitects pyee to use a BaseEventEmitter base class that's fully synchronous, and adds the following subclasses for async use:

It additionally reimplements EventEmitter on top of BaseEventEmitter with a deprecation warning.

One thing this doesn't solve for is interop between different types of event emitters, but I plan on punting on this until some later date.

jfhbrook commented 5 years ago