Is it ok to await the same task from multiple threads – is await thread safe?
As you alluded to, await is thin enough that it doesn’t see threads in the first place. The code associated with await (the compiler-generated code within the state machine, and the support classes in the BCL) will only ever run on one thread at a time. (it can switch to a different thread when coming … Read more