Appearance
AcquireReaderLockAsync Method
Definition
- Namespace:
JASE.Extensions - Assembly:
JASE.Concurrency.dll
ValueTask<LockHandle> AcquireReaderLockAsync(AsyncReaderWriterLock lock, CancellationToken cancellationToken = null)
csharp
ValueTask<LockHandle> AcquireReaderLockAsync(AsyncReaderWriterLock lock, CancellationToken cancellationToken = null)Acquires a reader lock asynchronously.
Parameters
| Name | Description |
|---|---|
cancellationToken | Token used to cancel the wait. |
lock | The lock instance. |
Returns
A disposable handle that releases the reader lock.