\
An event oriented concurrent runtime.
Roundabout uses a single event bus that is causal consistent for the whole program. This bus is then read in parallel by event handlers that can modify their internal state and send events.
To use roundabout in your project add the following to your Cargo.toml
:
toml
[dependencies]
roundabout = "0.1.0"
```rust use roundabout::prelude::*;
pub struct PingEvent(u64);
pub struct PongEvent(u64);
pub struct PingState { count: u64, }
fn pinghandler(builder: EventHandlerBuilder
pub struct PongState { count: u64, }
fn ponghandler(builder: EventHandlerBuilder
fn main() { Runtime::builder(512) .register(pinghandler) .register(ponghandler) .finish() .start(PingEvent(0)); }
```
Take a look at the examples and benches.
Roundabout is dual-licensed under Apache 2.0 and MIT.
See LICENSEAPACHE and LICENSEMIT