Click or drag to resize

AsyncReaderWriterLockGetWriteLockAsync Method

Acquires an exclusive write lock.

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

Return Value

Type: NonDisposableTaskIDisposable
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