Skip to content

Instantly share code, notes, and snippets.

@mizrael
Created April 29, 2019 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mizrael/064901b97717cc3cce75bda68bbae787 to your computer and use it in GitHub Desktop.
Save mizrael/064901b97717cc3cce75bda68bbae787 to your computer and use it in GitHub Desktop.
try{
var task1 = DoSomethingAsync();
var task2 = DoSomethingElseAsync();
await Task.WhenAll(task1, task2);
}catch(Exception ex){
// do something meaningful with the exception
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment