Xamarin.CommunityToolkit by Microsoft

<PackageReference Include="Xamarin.CommunityToolkit" Version="2.0.0" />

.NET API 749,960 bytes

 AsyncCommand<TExecute, TCanExecute>

public class AsyncCommand<TExecute, TCanExecute> : BaseAsyncCommand<TExecute, TCanExecute>, IAsyncCommand<TExecute, TCanExecute>, IAsyncCommand<TExecute>, ICommand
An implementation of IAsyncCommand. Allows Commands to safely be used asynchronously with Task.
public AsyncCommand(Func<TExecute, Task> execute, Func<TCanExecute, bool> canExecute = null, Action<Exception> onException = null, bool continueOnCapturedContext = false, bool allowsMultipleExecutions = true)

Initializes a new instance of the AsyncCommand

public Task ExecuteAsync(TExecute parameter)

Executes the Command as a Task