BisonMQ
A Lightweight and Simple Rust Library for Job Queue
The gist
installation
cargo add bisonmq
Push a job to the queue
let job_queue: JobQueue = new?;
// return the length of the queue
let len: i64 = job_queue.push_job?;
Pop a job from the queue
let job_queue: JobQueue = new?;
// 0.0 means waiting forever
let result: = job_queue.pop_job;
Use the listener
let listen_handler = job_queue.listen;