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

แชร์
ฝัง
  • เผยแพร่เมื่อ 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 22 วันที่ผ่านมา

    glad you recovered from sickness