Rukko
A rust library for communicating with Apache Pekko JVM actors. Allows rust applications to send messages to and receive replies from Pekko actors.
Quick Start
Add Rukko to your Cargo.toml:
[]
= "0.1.0"
= "1.47.0"
Basic Example
use ;
async
Configuration
Timeouts
If your actor path is wrong or something else makes an ask hang until timeout, you will be waiting for 30 seconds for your error. If you can't wait half a minute, set your own timeout like this:
use Duration;
...
// Default timeout (30 seconds)
let response = actor.ask.await?;
// Custom timeout
let response = actor
.ask_with_timeout
.await?;
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Please feel free to submit issues and PRs.