Ordering asynchronous updates with coroutines, part 1: Mutual exclusion

4 · Raymond Chen · Sept. 6, 2021, 2:22 p.m.
I opined some time ago on the perils of holding a lock across a coroutine suspension point. But say you have a bunch of asynchronous activity that you want to serialize. How can you do that without a lock? There are a few different scenarios in which you may need to protect asynchronous activity. The post Ordering asynchronous updates with coroutines, part 1: Mutual exclusion appeared first on The Old New Thing....