Class AsyncReaderWriterLock.Awaiter
- Namespace
- Microsoft.VisualStudio.Threading
- Assembly
- Microsoft.VisualStudio.Threading.dll
Manages asynchronous access to a lock.
public class AsyncReaderWriterLock.Awaiter : ICriticalNotifyCompletion, INotifyCompletion
- Inheritance
-
AsyncReaderWriterLock.Awaiter
- Implements
- Inherited Members
Properties
IsCompleted
Gets a value indicating whether the lock has been issued.
public bool IsCompleted { get; }
Property Value
Methods
GetResult()
Applies the issued lock to the caller and returns the value used to release the lock.
public AsyncReaderWriterLock.Releaser GetResult()
Returns
- AsyncReaderWriterLock.Releaser
The value to dispose of to release the lock.
OnCompleted(Action)
Sets the delegate to execute when the lock is available.
public void OnCompleted(Action continuation)
Parameters
continuation
ActionThe delegate.
UnsafeOnCompleted(Action)
Sets the delegate to execute when the lock is available without flowing ExecutionContext.
public void UnsafeOnCompleted(Action continuation)
Parameters
continuation
ActionThe delegate.