Kameo
Simple tokio actors
- ✅ No Macros
- ✅ Async Support
- ✅ Links Between Actors (
start_link/start_child) - ✅ MPSC Unbounded Channel for Messaging
- ✅ Concurrent Queries
- ✅ Panic Safe
Installing
Stable
[]
= "0.1"
Nightly
= { = "0.1", = ["nightly"] }
Defining an Actor
// Define the actor state
// Define messages
;
Note, with the nightly feature flag enabled, this reply type can be i64 directly without the result.
Starting an Actor & Messaging
let counter_ref: = Counter .start;
let count = counter_ref.send.await?;
println!;
Contributing
Contributions are welcome! Feel free to submit pull requests, create issues, or suggest improvements.
License
kameo is dual-licensed under either:
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.