hey_listen
hey_listen copied to clipboard
Rust event-dispatchers for all your types : )
Hello. I was trying to implement a `hey_listen::rc::DispatcherRequest` with the intention of being able to modify the internal state of the listener. But noticed the signature of the on_event method...
The idea is to support manual opt-out from listening, as in no longer receiving events from a dispatcher. Probably by receiving an ID upon starting listening which can be passed...
A constant dispatcher shall: - Not be modifiable after initialisation, hence constant/immutable - Build an efficient/fast dispatching - Dispatcher-requests can only stop propagation - Be available sync and parallel Questions...
Provide dispatchers without `Mutex` for listening types that do not want to be mutable. This should be implemented as an alternative for every event-dispatcher.