File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 6
6
Allows you to subscribe to events with callbacks and also fire those events.
7
7
Events are in the form of (strings, value) and callbacks are in the form of closures that take in a value parameter;
8
8
9
-
10
9
## Differences between this crate and [`event-emitter-rs`](https://crates.io/crates/event-emitter-rs)
11
10
- Emitted values should implement an extra trait (Debug) in addition to Serde's Serialize and Deserialize.
12
- - This is an async implementation, currently limited to tokio, but async-std will be added soon under a feature flag.
11
+ - This is an async implementation, not limited to tokio, but also supports async-std under the ```use-async-std``` feature flag.
13
12
- The listener methods ***(on and once)*** take a callback that returns a future instead of a merely a closure.
14
13
- The emit methods executes each callback on each event by spawning a tokio task instead of a std::thread
15
14
You can’t perform that action at this time.
0 commit comments