Last active
December 21, 2015 09:52
-
-
Save BojanKomazec/b3c6272e7d97522f201f 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 | |
{ | |
await task; | |
} | |
catch (OperationCanceledException ex) | |
{ | |
// handle task cancellation | |
} | |
catch | |
{ | |
// handle other errors | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment