Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async Task Main()
- {
- TaskScheduler.UnobservedTaskException += (sender, args) =>
- {
- Console.WriteLine("A Problem");
- };
- Magic();
- GC.Collect();
- }
- async Task Magic()
- {
- await Task.Delay(600);
- throw new Exception();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement