#notifications #queue #retries #tokio #sender #mpsc #prowl

prowl-queue

Send prowl notifications with retries. See https://www.prowlapp.com

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

MIT license

8KB
133 lines

Prowl Queue

Some common logic around Tokio mpsc with retries for prowl notifications.

https://docs.rs/prowl-queue/0.1.1/prowl_queue/


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