Skip to content

Instantly share code, notes, and snippets.

@bnayae
Created June 4, 2018 08:44
Show Gist options
  • Save bnayae/109a8368dfc44930a27079b0021c94a4 to your computer and use it in GitHub Desktop.
Save bnayae/109a8368dfc44930a27079b0021c94a4 to your computer and use it in GitHub Desktop.
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