Resource locking with async/await

前端 未结 2 398
失恋的感觉
失恋的感觉 2020-12-24 13:19

I have an application where I have a shared resource (a Motion system) which can be accessed by multiple clients. I have individual Operations that require access to the sy

2条回答
  •  感情败类
    2020-12-24 13:37

    There's SemaphoreSlim.WaitAsync which fits closely here. (I found it in a similar question).

提交回复
热议问题