flt_worker icon indicating copy to clipboard operation
flt_worker copied to clipboard

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

Open tonnyavery opened this issue 5 years ago • 2 comments

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?

tonnyavery avatar Aug 22 '20 10:08 tonnyavery

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

tonnyavery avatar Aug 22 '20 10:08 tonnyavery

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!

xinthink avatar Aug 24 '20 15:08 xinthink