\
An message oriented concurrent runtime.
Roundabout uses a single message bus that is causal consistent for the whole program. This bus is then read in parallel by message handlers that can modify their internal state and send messages.
To use roundabout in your project add the following to your Cargo.toml
:
toml
[dependencies]
roundabout = "0.2.0"
```rust use roundabout::prelude::*;
pub struct PingEvent(u64);
pub struct PongEvent(u64);
pub struct PingState { count: u64, }
fn pinghandler(builder: OpenMessageHandlerBuilder
pub struct PongState { count: u64, }
fn ponghandler(builder: OpenMessageHandlerBuilder
fn main() { Runtime::builder(512) .add(pinghandler) .add(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