events_emitter

Crates.ioevents_emitter
lib.rsevents_emitter
version0.1.3
sourcesrc
created_at2019-04-23 07:58:23.867021
updated_at2019-04-23 09:51:35.867601
descriptionRust implementation of Node.JS event.
homepage
repositoryhttps://github.com/xivistudios/events
max_upload_size
id129611
size6,786
Lazy Panda (mycrl)

documentation

https://docs.rs/events_emitter

README

events_emitter

Rust implementation of Node.JS event

  • Implements most of the interfaces and functions of Node.JS Events.

  • Specific work conditions may vary.

Example

extern crate events_emitter;
use events_emitter::EventEmitter;

let events = EventEmitter::new();
events.on("hello", |x| { println!("{}", x) });
events.emit("hello", "word");
events.remove("hello");
Commit count: 0

cargo fmt