Locking ensures, that only one thread can execute some code at a time. However, as soon as you use await, you can't use "lock" anymore. Why is that and what can you use instead?
29 июн 2024