Ordering asynchronous updates with coroutines--Raymond Chen
Will you use it?
Ordering asynchronous updates with coroutines, part 1, part 2, part 3, part 4, part 5
by Raymond Chen
From the article:
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. We’ll look at them over the next few days...