Is it possible to implement locking in a way that calling Lock in async method would work as well? As I can see from the librarys code, currently I should call LockAsync if in an async method and Lock if in synchronous method. If not it would lock up when calling Lock inside async method.
Is it possible to implement locking in a way that calling Lock in async method would work as well? As I can see from the librarys code, currently I should call LockAsync if in an async method and Lock if in synchronous method. If not it would lock up when calling Lock inside async method.