From f2f099bddb946f785dbb1d2d2857c96d4633b0c8 Mon Sep 17 00:00:00 2001 From: Evan Husted Date: Sun, 19 Jan 2025 12:46:32 -0600 Subject: [PATCH] remove Async suffixes; they're factory methods not actual async methods. --- src/Ryujinx/UI/Helpers/Commands.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Ryujinx/UI/Helpers/Commands.cs b/src/Ryujinx/UI/Helpers/Commands.cs index 7267ca75a..df24a7da1 100644 --- a/src/Ryujinx/UI/Helpers/Commands.cs +++ b/src/Ryujinx/UI/Helpers/Commands.cs @@ -17,32 +17,32 @@ namespace Ryujinx.Ava.UI.Helpers public static RelayCommand CreateConditionalWithArg(Action action, Predicate canExecute) => new(action, canExecute); - public static AsyncRelayCommand CreateAsync(Func action) + public static AsyncRelayCommand Create(Func action) => new(action, AsyncRelayCommandOptions.None); - public static AsyncRelayCommand CreateConcurrentAsync(Func action) + public static AsyncRelayCommand CreateConcurrent(Func action) => new(action, AsyncRelayCommandOptions.AllowConcurrentExecutions); - public static AsyncRelayCommand CreateSilentFailAsync(Func action) + public static AsyncRelayCommand CreateSilentFail(Func action) => new(action, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler); - public static AsyncRelayCommand CreateWithArgAsync(Func action) + public static AsyncRelayCommand CreateWithArg(Func action) => new(action, AsyncRelayCommandOptions.None); - public static AsyncRelayCommand CreateConcurrentWithArgAsync(Func action) + public static AsyncRelayCommand CreateConcurrentWithArg(Func action) => new(action, AsyncRelayCommandOptions.AllowConcurrentExecutions); - public static AsyncRelayCommand CreateSilentFailWithArgAsync(Func action) + public static AsyncRelayCommand CreateSilentFailWithArg(Func action) => new(action, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler); - public static AsyncRelayCommand CreateConditionalAsync(Func action, Func canExecute) + public static AsyncRelayCommand CreateConditional(Func action, Func canExecute) => new(action, canExecute, AsyncRelayCommandOptions.None); - public static AsyncRelayCommand CreateConcurrentConditionalAsync(Func action, Func canExecute) + public static AsyncRelayCommand CreateConcurrentConditional(Func action, Func canExecute) => new(action, canExecute, AsyncRelayCommandOptions.AllowConcurrentExecutions); - public static AsyncRelayCommand CreateSilentFailConditionalAsync(Func action, Func canExecute) + public static AsyncRelayCommand CreateSilentFailConditional(Func action, Func canExecute) => new(action, canExecute, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler); - public static AsyncRelayCommand CreateConditionalWithArgAsync(Func action, Predicate canExecute) + public static AsyncRelayCommand CreateConditionalWithArg(Func action, Predicate canExecute) => new(action, canExecute, AsyncRelayCommandOptions.None); - public static AsyncRelayCommand CreateConcurrentConditionalWithArgAsync(Func action, Predicate canExecute) + public static AsyncRelayCommand CreateConcurrentConditionalWithArg(Func action, Predicate canExecute) => new(action, canExecute, AsyncRelayCommandOptions.AllowConcurrentExecutions); - public static AsyncRelayCommand CreateSilentFailConditionalWithArgAsync(Func action, Predicate canExecute) + public static AsyncRelayCommand CreateSilentFailConditionalWithArg(Func action, Predicate canExecute) => new(action, canExecute, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler); } }