5 releases
0.1.4 | Oct 12, 2022 |
---|---|
0.1.3 | Oct 12, 2022 |
0.1.2 | Oct 12, 2022 |
0.1.1 | Oct 11, 2022 |
0.1.0 | Oct 11, 2022 |
#9 in #retries
8KB
133 lines
Prowl Queue
Some common logic around Tokio mpsc with retries for prowl notifications.
lib.rs
:
Example
use prowl_queue::{ProwlQueue, ProwlQueueSender};
fn application(sender: &ProwlQueueSender) {
let notification = prowl::Notification::new(...)
sender.add(notification).expect("Failed to add notification");
}
#[tokio::main]
async fn main() {
let (sender, reciever) = ProwlQueue::default().into_parts();
tokio::spawn(reciever.async_loop());
application(&sender);
}
Dependencies
~7–19MB
~265K SLoC