Skip to content

Commit 905e25d

Browse files
committed
Updated AsyncRelayCommand docs
1 parent 0656885 commit 905e25d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/mvvm/AsyncRelayCommand.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ The [`AsyncRelayCommand`](https://docs.microsoft.com/dotnet/api/microsoft.toolki
1515

1616
`AsyncRelayCommand` and `AsyncRelayCommand<T>` have the following main features:
1717

18-
- They extend the functionalities of the non-asynchronous commands included in the library, with support for `Task`-returning delegates.
18+
- They extend the functionalities of the synchronous commands included in the library, with support for `Task`-returning delegates.
19+
- They can wrap asynchronous functions with an additional `CancellationToken` parameter to support cancelation, and they expose a `CanBeCanceled` and `IsCancellationRequested` properties, as well as a `Cancel` method.
1920
- They expose an `ExecutionTask` property that can be used to monitor the progress of a pending operation, and an `IsRunning` that can be used to check when an operation completes. This is particularly useful to bind a command to UI elements such as loading indicators.
2021
- They implement the `IAsyncRelayCommand` and `IAsyncRelayCommand<T>` interfaces, which means that viewmodel can easily expose commands using these to reduce the tight coupling between types. For instance, this makes it easier to replace a command with a custom implementation exposing the same public API surface, if needed.
2122

0 commit comments

Comments
 (0)