Why you can't use await inside a lock (C#/.NET)

Поделиться
HTML-код
  • Опубликовано: 29 июн 2024
  • 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?

Комментарии • 1

  • @mumk
    @mumk 20 дней назад

    glad you recovered from sickness