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

[Question] Is there any way to get progress callbacks from a Worker scheduled task? #3

Open
AAverin opened this issue Aug 22, 2020 · 2 comments

Comments

@AAverin
Copy link

AAverin commented Aug 22, 2020

I need to show a download progress indicator in the app while the heavy task is being processed in the background.
How can I get progress and result callbacks?

@AAverin
Copy link
Author

AAverin commented Aug 22, 2020

Maybe there is some way to pass into the Worker a dispatcher that could dispatch an action?

@xinthink
Copy link
Owner

You may try to pass a SendPort via the request input, but I'm not sure whether it would work.
However, one way to do it may be sharing the progress through a file or database record. The BitCoin price example may help.
Good luck!

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

No branches or pull requests

2 participants