mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-23 13:35:04 +03:00
remove Async suffixes; they're factory methods not actual async methods.
This commit is contained in:
parent
2616dc57fb
commit
f2f099bddb
@ -17,32 +17,32 @@ namespace Ryujinx.Ava.UI.Helpers
|
|||||||
public static RelayCommand<T> CreateConditionalWithArg<T>(Action<T?> action, Predicate<T?> canExecute)
|
public static RelayCommand<T> CreateConditionalWithArg<T>(Action<T?> action, Predicate<T?> canExecute)
|
||||||
=> new(action, canExecute);
|
=> new(action, canExecute);
|
||||||
|
|
||||||
public static AsyncRelayCommand CreateAsync(Func<Task> action)
|
public static AsyncRelayCommand Create(Func<Task> action)
|
||||||
=> new(action, AsyncRelayCommandOptions.None);
|
=> new(action, AsyncRelayCommandOptions.None);
|
||||||
public static AsyncRelayCommand CreateConcurrentAsync(Func<Task> action)
|
public static AsyncRelayCommand CreateConcurrent(Func<Task> action)
|
||||||
=> new(action, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
=> new(action, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
||||||
public static AsyncRelayCommand CreateSilentFailAsync(Func<Task> action)
|
public static AsyncRelayCommand CreateSilentFail(Func<Task> action)
|
||||||
=> new(action, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
=> new(action, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
||||||
|
|
||||||
public static AsyncRelayCommand<T> CreateWithArgAsync<T>(Func<T?, Task> action)
|
public static AsyncRelayCommand<T> CreateWithArg<T>(Func<T?, Task> action)
|
||||||
=> new(action, AsyncRelayCommandOptions.None);
|
=> new(action, AsyncRelayCommandOptions.None);
|
||||||
public static AsyncRelayCommand<T> CreateConcurrentWithArgAsync<T>(Func<T?, Task> action)
|
public static AsyncRelayCommand<T> CreateConcurrentWithArg<T>(Func<T?, Task> action)
|
||||||
=> new(action, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
=> new(action, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
||||||
public static AsyncRelayCommand<T> CreateSilentFailWithArgAsync<T>(Func<T?, Task> action)
|
public static AsyncRelayCommand<T> CreateSilentFailWithArg<T>(Func<T?, Task> action)
|
||||||
=> new(action, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
=> new(action, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
||||||
|
|
||||||
public static AsyncRelayCommand CreateConditionalAsync(Func<Task> action, Func<bool> canExecute)
|
public static AsyncRelayCommand CreateConditional(Func<Task> action, Func<bool> canExecute)
|
||||||
=> new(action, canExecute, AsyncRelayCommandOptions.None);
|
=> new(action, canExecute, AsyncRelayCommandOptions.None);
|
||||||
public static AsyncRelayCommand CreateConcurrentConditionalAsync(Func<Task> action, Func<bool> canExecute)
|
public static AsyncRelayCommand CreateConcurrentConditional(Func<Task> action, Func<bool> canExecute)
|
||||||
=> new(action, canExecute, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
=> new(action, canExecute, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
||||||
public static AsyncRelayCommand CreateSilentFailConditionalAsync(Func<Task> action, Func<bool> canExecute)
|
public static AsyncRelayCommand CreateSilentFailConditional(Func<Task> action, Func<bool> canExecute)
|
||||||
=> new(action, canExecute, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
=> new(action, canExecute, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
||||||
|
|
||||||
public static AsyncRelayCommand<T> CreateConditionalWithArgAsync<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
public static AsyncRelayCommand<T> CreateConditionalWithArg<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
||||||
=> new(action, canExecute, AsyncRelayCommandOptions.None);
|
=> new(action, canExecute, AsyncRelayCommandOptions.None);
|
||||||
public static AsyncRelayCommand<T> CreateConcurrentConditionalWithArgAsync<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
public static AsyncRelayCommand<T> CreateConcurrentConditionalWithArg<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
||||||
=> new(action, canExecute, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
=> new(action, canExecute, AsyncRelayCommandOptions.AllowConcurrentExecutions);
|
||||||
public static AsyncRelayCommand<T> CreateSilentFailConditionalWithArgAsync<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
public static AsyncRelayCommand<T> CreateSilentFailConditionalWithArg<T>(Func<T?, Task> action, Predicate<T?> canExecute)
|
||||||
=> new(action, canExecute, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
=> new(action, canExecute, AsyncRelayCommandOptions.FlowExceptionsToTaskScheduler);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user