Skip to content

Commit

Permalink
Fix success continuation
Browse files Browse the repository at this point in the history
  • Loading branch information
conradakunga committed Sep 24, 2018
1 parent 78c03d7 commit 0fb80c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chapter11/08 - Continuation Exception Handling/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static void Main(string[] args)

var success = taskWork.ContinueWith(prior =>
{
Console.WriteLine($"I failed: {prior.Exception.InnerException.GetType().Name}");
Console.WriteLine($"I succeeded!");
}, TaskContinuationOptions.NotOnFaulted);
Console.ReadLine();
}
Expand Down

0 comments on commit 0fb80c7

Please sign in to comment.