Closed jfhbrook closed 1 year ago
My current opinion on this is that there are other abstractions - namely channels - which can solve most of the use cases of event emitters with the desired type safety. This is an interesting puzzle, but I don't plan on adding this to pyee
.
It would be cool to have a type-safe
TypedEventEmitter[E]
class which picks up some of the parts I wasn't able to make work from https://github.com/jfhbrook/pyee/pull/97 .