MemoizR
MemoizR copied to clipboard
create analyzer that ensures every task is awaited in scope
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