Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Linq doesn't throw exceptions in async-await Tasks. #164

Open
cyberfrogg opened this issue Feb 17, 2022 · 1 comment
Open

System.Linq doesn't throw exceptions in async-await Tasks. #164

cyberfrogg opened this issue Feb 17, 2022 · 1 comment

Comments

@cyberfrogg
Copy link

Hi. I found an issue in System.Linq while working with async-await Tasks.

Issue:

When you use async-awaited Task when you using .Where() querries and IEnumerables and if you pass null array (example: MyNullArray.Where(x => x.state == true)) - thats will stop entire Task without throwing any exceptions. I could detect the stop only with the Visual Studio debugger. It showed: The thread 0x48e32be0 has exited with code 0 (0x0).

I think it is supposed to throw exceptions in console window.
It's not critical issue, but it can be confusing

@KalleOlaviNiemitalo
Copy link

KalleOlaviNiemitalo commented Mar 27, 2022

If you found a bug in .NET Framework then I believe https://developercommunity.visualstudio.com/ is the right place to report it. This repository is for publishing the existing code and not for changing how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants