[Reactive] Enable Command cancellation #1363
Unanswered
weitzhandler
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Request
Enable better cancellation of Commands.
Implementation idea
It can be achieved by using an additional cancellation command.
For example, we add another interface
ICancellableAsyncCommand
(or modifying the existing), and add aCancel
property to it (of typeIAsyncCommand
, which when called, triggers theCancellationToken
of its parent Command.Pseudo code (pseudo):
Implementation:
Model:
View:
The button's visibility can then be set according to each others execution state and they can be displayed overlapping each other. Even a single button that changes state, or a cancellable button.
Beta Was this translation helpful? Give feedback.
All reactions