We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current version CancelCommand.Wrap() does not propagate IsCancelled information to the Execution.IsCancelled of the parent AsyncCommand.
CancelCommand.Wrap()
IsCancelled
Execution.IsCancelled
AsyncCommand
In the following code
public AsyncCommandsDemoViewModel(IDataClient dataClient) { this.CancelGetData = new CancelCommand(); this.GetData = new AsyncCommand( this.CancelGetData.Wrap( async cancellationToken => this.Data = await dataClient.GetDataAsync(cancellationToken))); }
if the CancelGetData command is executed, GetData.Execuction.IsCancelled never becomes true.
CancelGetData
GetData.Execuction.IsCancelled
true
The text was updated successfully, but these errors were encountered:
StephenCleary
Successfully merging a pull request may close this issue.
The current version
CancelCommand.Wrap()
does not propagateIsCancelled
information to theExecution.IsCancelled
of the parentAsyncCommand
.In the following code
if the
CancelGetData
command is executed,GetData.Execuction.IsCancelled
never becomestrue
.The text was updated successfully, but these errors were encountered: