Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide multitask example #14

Merged
merged 1 commit into from
Oct 18, 2024
Merged

provide multitask example #14

merged 1 commit into from
Oct 18, 2024

Conversation

maxcountryman
Copy link
Owner

This is an illustration of how Task may be implemented for a struct which itself contains other implementations of Task.

Doing so allows multiple tasks to co-exist in the same queue and be processed by the same worker all while maintaining type safety.

This is an illustration of how `Task` may be implemented for a struct
which itself contains other implementations of `Task`.

Doing so allows multiple tasks to co-exist in the same queue and be
processed by the same worker all while maintaining type safety.
@maxcountryman maxcountryman merged commit 95fbe10 into main Oct 18, 2024
4 checks passed
@maxcountryman maxcountryman deleted the example-multitask branch October 18, 2024 00:27
maxcountryman added a commit that referenced this pull request Oct 18, 2024
This is an illustration of how `Task` may be implemented for a struct
which itself contains other implementations of `Task`.

Doing so allows multiple tasks to co-exist in the same queue and be
processed by the same worker all while maintaining type safety.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant