Browse Source
Merge pull request #6464 from AvaloniaUI/Takoooooo-patch-1
Update AvaloniaSynchronizationContext to don't wrap exceptions
pull/6555/head
Nikita Tsukanov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/Avalonia.Base/Threading/AvaloniaSynchronizationContext.cs
|
|
|
@ -39,7 +39,7 @@ namespace Avalonia.Threading |
|
|
|
if (Dispatcher.UIThread.CheckAccess()) |
|
|
|
d(state); |
|
|
|
else |
|
|
|
Dispatcher.UIThread.InvokeAsync(() => d(state), DispatcherPriority.Send).Wait(); |
|
|
|
Dispatcher.UIThread.InvokeAsync(() => d(state), DispatcherPriority.Send).GetAwaiter().GetResult(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|