AsyncLockAcquisition
Provides a set of methods to acquire different types of asynchronous lock.
Acquires exclusive lock asynchronously.
Acquires exclusive lock asynchronously.
Acquires semaphore lock asynchronously.
Acquires semaphore lock asynchronously.
Acquires exclusive lock associated with the given object.
Acquires exclusive lock associated with the given object.
Acquires reader lock.
public static Task<Holder> AcquireReadLock(this AsyncReaderWriterLock rwLock, CancellationToken token)
Acquires reader lock.
Acquires reader lock associated with the given object.
Acquires reader lock associated with the given object.
public static Task<Holder> AcquireUpgradeableReadLock(this AsyncReaderWriterLock rwLock, TimeSpan timeout)
Acquires upgradeable lock.
public static Task<Holder> AcquireUpgradeableReadLock(this AsyncReaderWriterLock rwLock, CancellationToken token)
Acquires upgradeable lock.
Acquires upgradeable lock associated with the given object.
Acquires upgradeable lock associated with the given object.
Acquires writer lock.
public static Task<Holder> AcquireWriteLock(this AsyncReaderWriterLock rwLock, CancellationToken token)
Acquires writer lock.
Acquires writer lock associated with the given object.
Acquires reader lock associated with the given object.