async-events-emitter
async-events-emitter
is a Rust library providing an asynchronous event handling system. It allows users to define custom events and handlers, emit events, and process them asynchronously.
Features
- Define custom events.
- Register asynchronous event handlers.
- Emit events to be handled by registered handlers.
Installation
Add async-events-emitter
to your Cargo.toml
:
[]
= "0.1.0
Usage
Usage
Here's a quick example to get you started:
use *;
use async_trait;
// Define your custom event
;
// Implement the EventHandler trait
// Usage
async
License
This library is distributed under the terms of Apache-2.0. See LICENSE for details.
Created with </>
by Amit Shmulevitch.