Skip to content

[ergonomics]: Multiple tasks types with one worker #615

@geofmureithi

Description

@geofmureithi

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions