Closed DarthMazut closed 10 months ago
Fixed with 18e5059:
Following members were added to IDispatcher
interface:
bool HasThreadAccess { get; }
void RunOnMainThread(Func<Task>)
Task RunOnMainThreadAsync(Action)
void EnqueueOnMainThread(Func<Task>)
Why? What if I'd like to await for a sync call to be executed on UI thread? Is Dispatcher behaves correctly when we're passing async Action to it i.e.
IDispatcher.RunOnMainThreadAsync()
requires Func