❔ How to disable background worker?
Hi,
I need to do something in background when state is true and stop when state is false. I changing state by button. If I press button, state is true unit I press button again. I set WorkerSupportsCancellation on true. When I press button again, I have all the time TEST in console. Any idea?
2 Replies
You don't
await
any of your async methods. You don't even run them in a blocking manner. Everything is fire and forget.
I'm not 100% sure that's the issue, but very much seems like it might beWas this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.