Summary
Syntax
public static ReactiveCommand<Unit, Unit> CreateFromTask(Func<CancellationToken, Task> execute, IObservable<bool> canExecute = null, IScheduler? outputScheduler = null)
Parameters
Name |
Type |
Description |
execute |
Func<CancellationToken, Task> |
Provides a Task representing the command's asynchronous execution logic.
|
canExecute |
IObservable<bool> |
An optional observable that dictates the availability of the command for execution.
|
outputScheduler |
IScheduler? |
An optional scheduler that is used to surface events. Defaults to RxApp.MainThreadScheduler .
|
Return Value