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

"uplift" util #57

Closed jfhbrook closed 4 years ago

jfhbrook commented 5 years ago

This adds an "uplift(cls, underlying)" function which can be used to "upgrade" simple event emitter instances into fancier event emitters that support things like asyncio or twisted.