Expand description
§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);
}
Structs§
- Linear
Retry - Your most generic type of retry. Retry every X until Y retries.
- Prowl
Queue - Prowl
Queue Options - Options for the queue to know how to operate.
- Prowl
Queue Receiver - Prowl
Queue Sender
Enums§
- AddError
- Retry
Method - Wrapper of the different retry methods