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

create analyzer that ensures every task is awaited in scope #21

Open
timonkrebs opened this issue Oct 10, 2023 · 2 comments
Open

create analyzer that ensures every task is awaited in scope #21

timonkrebs opened this issue Oct 10, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@timonkrebs
Copy link
Owner

timonkrebs commented Oct 10, 2023

No Task should be stored in a variable to ensure structured sequential concurrency.

https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-disposeasync

Maybe there is a way to force await at the end of the scope which would probably be fine to.

Like: StructuredTaskScope

https://howtodoinjava.com/java/multi-threading/structured-concurrency/#3-implementing-structured-concurrency-with-structuredtaskscope

@timonkrebs timonkrebs changed the title create analyzer that ensures every task is immediately awaited create analyzer that ensures every task is awaited in scope Oct 18, 2023
@timonkrebs timonkrebs added the enhancement New feature or request label Dec 23, 2023
@timonkrebs
Copy link
Owner Author

timonkrebs commented Aug 3, 2024

<WarningsAsErrors>CS4014</WarningsAsErrors>
https://github.com/semihokur/AsyncFixer

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

No branches or pull requests

1 participant