You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report. I'm not sure when or if we'll get to resolving this particular issue though, as there is no end to corner cases for this.
But here are two ideas for you to avoid the warning yourself:
Capture t.Result is a local variable directly within the ContinueWith delegate, and then use that within the InvokeAsync delegate.
Optimize this by passing in a TaskScheduler to your ContinueWith method that executes your code on the UI thread to begin with so you don't have to continue on a threadpool thread, only to schedule more work on the UI thread.
Bug description
Repro steps
In this case, t.Result[0] will trigger the warning.
The text was updated successfully, but these errors were encountered: