Browse Source
Merge pull request #7343 from AvaloniaUI/fixes/6930-sync-context-priority
Reduce the priority in AvaloniaSynchronizationContext.
pull/7351/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
|
|
|
@ -30,7 +30,7 @@ namespace Avalonia.Threading |
|
|
|
/// <inheritdoc/>
|
|
|
|
public override void Post(SendOrPostCallback d, object? state) |
|
|
|
{ |
|
|
|
Dispatcher.UIThread.Post(() => d(state), DispatcherPriority.Send); |
|
|
|
Dispatcher.UIThread.Post(() => d(state), DispatcherPriority.Background); |
|
|
|
} |
|
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|