Share via


AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter Struct

Definition

Manages asynchronous access to a lock.

public:  where TResource : classvalue class AsyncReaderWriterResourceLock<TMoniker, TResource>::ResourceAwaiter : System::Runtime::CompilerServices::INotifyCompletion
public:  where TResource : classvalue class AsyncReaderWriterResourceLock<TMoniker, TResource>::ResourceAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
[System.Diagnostics.DebuggerDisplay("{awaiter.kind}")]
public struct AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter : System.Runtime.CompilerServices.INotifyCompletion where TResource : class
[System.Diagnostics.DebuggerDisplay("{awaiter.kind}")]
public struct AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion where TResource : class
[System.Diagnostics.DebuggerDisplay("{awaiter.kind}")]
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion where TResource : class
[<System.Diagnostics.DebuggerDisplay("{awaiter.kind}")>]
type AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>.ResourceAwaiter = struct
    interface INotifyCompletion
[<System.Diagnostics.DebuggerDisplay("{awaiter.kind}")>]
type AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>.ResourceAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
[<System.Diagnostics.DebuggerDisplay("{awaiter.kind}")>]
[<System.Runtime.CompilerServices.IsReadOnly>]
type AsyncReaderWriterResourceLock<'Moniker, 'Resource (requires 'Resource : null)>.ResourceAwaiter = struct
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Structure AsyncReaderWriterResourceLock(Of TMoniker, TResource).ResourceAwaiter
Implements INotifyCompletion
Public Structure AsyncReaderWriterResourceLock(Of TMoniker, TResource).ResourceAwaiter
Implements ICriticalNotifyCompletion

Type Parameters

TMoniker
TResource
Inheritance
AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter
Attributes
Implements

Properties

IsCompleted

Gets a value indicating whether the lock has been issued.

Methods

GetResult()

Applies the issued lock to the caller and returns the value used to release the lock.

OnCompleted(Action)

Sets the delegate to execute when the lock is available.

UnsafeOnCompleted(Action)

Sets the delegate to execute when the lock is available.

Applies to

Thread Safety

This type is thread-safe for all members.