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 of the AsyncCommand rethrows any exception that occurs in the task run by the command.
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 GetDataAsync throws any exception it will be propagated to the UI thread causing the application to crash.
GetDataAsync
The text was updated successfully, but these errors were encountered:
Remove useless await
670fd1a
fixes StephenCleary#28
8c14007
Fixes StephenCleary#28
StephenCleary
Successfully merging a pull request may close this issue.
The current version of the
AsyncCommand
rethrows any exception that occurs in the task run by the command.In the following code
If the
GetDataAsync
throws any exception it will be propagated to the UI thread causing the application to crash.The text was updated successfully, but these errors were encountered: