aleclarson / emitter-kit

Type-safe event handling for Swift
MIT License
567 stars 71 forks source link

Add method for stopping emit phase early #47

Open aleclarson opened 6 years ago

aleclarson commented 6 years ago

This method would prevent listeners added after the current listener from receiving the event.

Not certain on how this would be implemented or what the method name would be.

It's also possible something like this calls for an abstraction layer on top of EmitterKit instead of being baked in.