I believe, while unlikely, that it is possible for a Task queued up using Task.Run() to end up running on the Main thread.
I'm concerned that (in my WPF app), If I am using App.Current.Dispatcher.Invoke(), or similar, inside this Task, I will cause a deadlock.
Is this a valid fear? If so, is there a way to prevent this from happening (without checking the current thread *isnt* the main thread).
Thanks