Hey! Listen!
Hey_listen is an event-dispatcher for Closures, Structs, Enums and other types. On another note, hey_listen supports prioritised/ordered dispatching and aims to add parallel dispatching as well!
Everyone is welcome to contribute, check out the CONTRIBUTING.md for further guidance.
Example
Here is a quick example on how to use the event-dispatcher:
extern crate hey_listen;
extern crate parking_lot;
use Listener;
use EventDispatcher;
use Arc;
use Mutex;
Installation
Add this to your Cargo.toml:
[]
= "0.1.2"
= "^0.5"
and this to your crate's root:
extern crate hey_listen;
extern crate parking_lot;