MemoizR icon indicating copy to clipboard operation
MemoizR copied to clipboard

create analyzer that ensures every task is awaited in scope

Open timonkrebs opened this issue 1 year ago • 2 comments

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 avatar Oct 10 '23 22:10 timonkrebs