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

Tasks plugin: async queue helpers #354

Merged
merged 3 commits into from
Sep 29, 2023
Merged

Tasks plugin: async queue helpers #354

merged 3 commits into from
Sep 29, 2023

Conversation

Wulf
Copy link
Owner

@Wulf Wulf commented Sep 28, 2023

The default example for the tasks plugin uses fang's sync queue.

Here, we introduce the necessary changes to also make it easy for end-users to use async tasks, as well as example code on how to obtain an async queue and enqueue such tasks.

Moreover, by default, the sync queue now picks up tasks typed as "sync" and the async queue picks up tasks typed as "async". This should hopefully reduce errors encountered by others 🙌

Oh, and a small bump to fang 0.10.4!

@Wulf Wulf changed the title Tasks plugin: async tasks example Tasks plugin: async queue helpers Sep 28, 2023
@Wulf Wulf merged commit d49e608 into main Sep 29, 2023
10 checks passed
@Wulf Wulf deleted the async-tasks branch September 29, 2023 21:17
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