Created
April 29, 2019 10:18
-
-
Save mizrael/064901b97717cc3cce75bda68bbae787 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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