4 ms·
IIRC C# has management under the hood with different SynchronizationContext [0] to manage this, and it can lead to bad habits like sprinkling "ConfigureAwait(fa
by xnorswap 3y ago
IIRC C# has management under the hood with different SynchronizationContext [0] to manage this, and it can lead to bad habits like sprinkling "ConfigureAwait(false)" all over code.
It's also devilishly hard to understand, I've read a blog [1] on the subject several times and don't always fully grasp the consequences of different options.
[0] https://learn.microsoft.com/en-us/dotnet/api/system.threading.synchronizationcontext?view=net-7.0 https://learn.microsoft.com/en-us/dotnet/api/system.threadin...
[1] https://hamidmosalla.com/2018/06/24/what-is-synchronizationcontext/ https://hamidmosalla.com/2018/06/24/what-is-synchronizationc...