Currently we have a one-worker one task requirement.
This issue will track the easing of this requirement.
Here is the suggested API:
WorkerBuilder::new("worker_name")
.backend(storage)
.build(|email: Email| async { "Hello, world!" })
.build(|sms: Sms| async { "Hello, world!" })
.run()
.await
.unwrap();
Related: