Created
June 4, 2018 08:44
-
-
Save bnayae/109a8368dfc44930a27079b0021c94a4 to your computer and use it in GitHub Desktop.
This file contains 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
private static async Task Exec() | |
{ | |
try | |
{ | |
await Task.Delay(1); | |
await A(); | |
} | |
catch (Exception ex) | |
{ | |
Trace.WriteLine(ex); | |
} | |
} | |
private static async Task A() | |
{ | |
await Task.Delay(1); | |
await B(); | |
} | |
private static async Task B() | |
{ | |
await Task.Delay(1); | |
throw new ArgumentException("some error"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment