From ff318b67d9f6d82f88c04f9be2a1e41f504188d1 Mon Sep 17 00:00:00 2001 From: Nikita Tsukanov Date: Wed, 12 Apr 2023 00:12:55 +0600 Subject: [PATCH] Rename InvokeTaskAsync to InvokeAsync to remove breaking behavior change --- src/Avalonia.Base/Threading/Dispatcher.Invoke.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Avalonia.Base/Threading/Dispatcher.Invoke.cs b/src/Avalonia.Base/Threading/Dispatcher.Invoke.cs index c6e9203f70..6842e4a255 100644 --- a/src/Avalonia.Base/Threading/Dispatcher.Invoke.cs +++ b/src/Avalonia.Base/Threading/Dispatcher.Invoke.cs @@ -557,10 +557,10 @@ public partial class Dispatcher /// /// An task that completes after the task returned from callback finishes /// - public Task InvokeTaskAsync(Func callback, DispatcherPriority priority = default) + public Task InvokeAsync(Func callback, DispatcherPriority priority = default) { _ = callback ?? throw new ArgumentNullException(nameof(callback)); - return InvokeAsync(callback, priority).GetTask().Unwrap(); + return InvokeAsync(callback, priority).GetTask().Unwrap(); } /// @@ -578,10 +578,10 @@ public partial class Dispatcher /// /// An task that completes after the task returned from callback finishes /// - public Task InvokeTaskAsync(Func> action, DispatcherPriority priority = default) + public Task InvokeAsync(Func> action, DispatcherPriority priority = default) { _ = action ?? throw new ArgumentNullException(nameof(action)); - return InvokeAsync(action, priority).GetTask().Unwrap(); + return InvokeAsync>(action, priority).GetTask().Unwrap(); } ///