It will be easier to avoid first chance exceptions if a NoThrowAwaitable extension method can be added for MainThreadAwaitable. The Boolean result of this custom awaitable would be true if the continuation executes on the main thread, and false if the continuation happened on any other thread.
It will be easier to avoid first chance exceptions if a
NoThrowAwaitableextension method can be added forMainThreadAwaitable. The Boolean result of this custom awaitable would betrueif the continuation executes on the main thread, andfalseif the continuation happened on any other thread.