Comment on FoundationDB's Flow – Bringing Actor-Based Concurrency to C++11parentComments−ddorian432moaren't reliable if an async/coroutines moves threads between callsThen just don't move them between threads and you're good with thread locals, no?−whizzter2moIirc often the frameworks don't have worker affinity, anyhow environments like .NET has "AsyncLocal" to provide an aware alternative.
Comments
Then just don't move them between threads and you're good with thread locals, no?
Iirc often the frameworks don't have worker affinity, anyhow environments like .NET has "AsyncLocal" to provide an aware alternative.