Skip to content

v0.2.0

Latest

Choose a tag to compare

@maxcountryman maxcountryman released this 16 Jul 15:14
· 1 commit to main since this release

What's Changed

  • Breaking: Queues are now stored and passed as Arc<Queue<_>>;
    Worker::new and Scheduler::new take Arc<Queue<_>> instead of Queue<_>. #100
  • Breaking: Job::run_worker and Job::run_scheduler have been removed. #100
  • Breaking: Job::run and Job::start now take &self rather than consuming self. #100
  • Fix: Shutdown channels are now unique. #97
  • Add: Job::queue, Job::worker, and Job::scheduler helpers for
    zero‑boilerplate executor creation. #100
  • Add: enqueue_multi et al, allowing batched enqueue. #79

Migration to 0.2.0:

  • Before:
let queue = Queue::builder().build().await?;
let job = Job::builder().queue(queue.clone()).build();
Worker::new(queue.clone(), job.clone()).run().await;
  • After:
let job = Job::builder().pool(pool).build().await?;
job.worker().run().await;

New Contributors

Full Changelog: v0.1.2...v0.2.0