#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

Download history 81/week @ 2024-02-26 1/week @ 2024-03-04 3/week @ 2024-03-11

85 downloads per month

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–20MB
~302K SLoC