diff --git a/src/ReactiveUI/ReactiveCommand/ReactiveCommand.cs b/src/ReactiveUI/ReactiveCommand/ReactiveCommand.cs index e39ca20bbd..201ff8c015 100644 --- a/src/ReactiveUI/ReactiveCommand/ReactiveCommand.cs +++ b/src/ReactiveUI/ReactiveCommand/ReactiveCommand.cs @@ -406,7 +406,7 @@ public static ReactiveCommand CreateFromTask( throw new ArgumentNullException(nameof(execute)); } - return CreateFromObservable(() => Observable.StartAsync(execute), canExecute, outputScheduler); + return CreateFromObservable(() => Observable.FromAsync(execute), canExecute, outputScheduler); } /// @@ -462,7 +462,7 @@ public static ReactiveCommand CreateFromTask( throw new ArgumentNullException(nameof(execute)); } - return CreateFromObservable(() => Observable.StartAsync(execute), canExecute, outputScheduler); + return CreateFromObservable(() => Observable.FromAsync(execute), canExecute, outputScheduler); } /// @@ -534,7 +534,7 @@ public static ReactiveCommand CreateFromTask( } return CreateFromObservable( - param => Observable.StartAsync(ct => execute(param, ct)), + param => Observable.FromAsync(ct => execute(param, ct)), canExecute, outputScheduler); } @@ -602,7 +602,7 @@ public static ReactiveCommand CreateFromTask( } return CreateFromObservable( - param => Observable.StartAsync(ct => execute(param, ct)), + param => Observable.FromAsync(ct => execute(param, ct)), canExecute, outputScheduler); }