Kameo
Simple tokio actors
- ✅ Async Support
- ✅ Links Between Actors (
spawn_link/spawn_child) - ✅ MPSC Unbounded Channel for Messaging
- ✅ Concurrent Queries
- ✅ Panic Safe
Installing
Stable
[]
= "0.1"
Nightly
[]
= { = "0.1", = ["nightly"] }
Defining an Actor without Macros
// Define the actor state
// Define messages
Defining an Actor with Macros
// Define the actor state
// Define messages
// Derive Actor
// Messages
Spawning an Actor & Messaging
use ;
let counter_ref: = Counter .spawn;
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.