Replies: 1 comment
-
Ok, guess I figured out a way... I need to iterate over app.workers and check the group of each worker. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm considering add an indeterminate progressbar that shows when background work of a certain type is in progress.
I have an idea on how this could be done without the new Worker manager API, but I wonder if there is one with it as well.
I suppose the basis would be annotating the work methods with @work and setting its group parameter and addding a on_worker_state_changed to the app.
But inside the on_worker_state_changed, how would I get a list of the workers for my special group that are still pending to check if there are any left?
Is there already an API for this kind of thing? If not, what do you think about adding it?
Beta Was this translation helpful? Give feedback.
All reactions