Nito.AsyncEx.AsyncLock
A mutual exclusion lock that is compatible with async. Note that this lock is not recursive!
Gets a semi-unique identifier for this asynchronous lock.
public AsyncLock()
Creates a new async-compatible mutual exclusion lock.
Creates a new async-compatible mutual exclusion lock using the specified wait queue.
Synchronously acquires the lock. Returns a disposable that releases the lock when disposed. This method may block the calling thread.
Synchronously acquires the lock. Returns a disposable that releases the lock when disposed. This method may block the calling thread.
Asynchronously acquires the lock. Returns a disposable that releases the lock when disposed.
Asynchronously acquires the lock. Returns a disposable that releases the lock when disposed.