azos icon indicating copy to clipboard operation
azos copied to clipboard

Why is `AsyncFlowMutableLocal` so widely used vs AsyncLocal<T> why would a session need to flow out from tasks? `SessionTests.cs`

Open itadapter opened this issue 2 years ago • 2 comments

itadapter avatar Oct 21 '21 03:10 itadapter

See #589 as an example of AsyncLocal. It is much more appropriate than Mutable. We should probably get rid of AsyncFlowMutableLocal being used in many places as it is only needed for compatibility with legacy at this point

itadapter avatar Oct 22 '21 21:10 itadapter

The Session has some legacy semantics in Glue. In fuure it will convert to plain AsyncLocal

itadapter avatar Oct 24 '21 23:10 itadapter