AsyncLock
Unified representation of asynchronous exclusive lock, semaphore lock, read lock, write lock or upgradeable read lock.
Represents acquired asynchronous lock.
Creates exclusive asynchronous lock but doesn't acquire it.
Wraps exclusive lock into the unified representation of asynchronous lock.
Creates strong (exclusive) lock but doesn't acquire it.
Determines whether two locks are the same.
Determines whether two locks are not the same.
Creates read lock but doesn't acquire it.
Wraps semaphore instance into the unified representation of the lock.
Creates semaphore-based lock but doesn't acquire the lock.
Creates weak lock but doesn't acquire it.
Creates write lock but doesn't acquire it.
Acquires the lock asynchronously.
Acquires the lock asynchronously.
Destroy this lock and dispose underlying lock object if it is owned by the given lock.
Destroy this lock and asynchronously dispose underlying lock object if it is owned by the given lock.
Determines whether this lock object is the same as other lock.
public Task<Holder> TryAcquireAsync(TimeSpan timeout, bool suppressCancellation, CancellationToken token)
Tries to acquire the lock asynchronously.
Tries to acquire the lock asynchronously.
Tries to acquire lock asynchronously.