You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple console app that uses AsyncContext.Run(Func) to run a task. If the task throws an exception, it seems to keep retrying the task over and over again....
I believe what you're seeing is actually due to the way the Visual Studio debugger acts with top-level exceptions. It is weird behavior (and quite possibly a bug), but if you run your app outside the debugger you'll see that it's not actually retrying the code. VS is just re-showing the exception for some unfathomable reason.
In particular, you'll see the same behavior with this code:
static void Main(string[] args)
{
throw new Exception();
}
Hi Stephen,
Thanks for your great library!
I have a simple console app that uses AsyncContext.Run(Func) to run a task. If the task throws an exception, it seems to keep retrying the task over and over again....
Am I doing something stupid?
Cheers,
Steve
The text was updated successfully, but these errors were encountered: