Click or drag to resize

AsyncReaderWriterLockGetReadLockAsync Method

Acquires a non-exclusive read lock.

Namespace:  Neon.Tasks
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
Syntax
public Task<IDisposable> GetReadLockAsync()

Return Value

Type: TaskIDisposable
The IDisposable instance to be disposed to release the lock.
Exceptions
ExceptionCondition
ObjectDisposedExceptionThrown if the lock is disposed before or after this method is called.
Remarks
Note Note
This class allows multiple readers to hold the lock at any given time but requires that writers have exclusive access. Writers are given priority over readers.
See Also