Compartir a través de


AsyncReaderWriterResourceLock<TMoniker, TResource>.ResourceAwaiter Structure

Microsoft internal only. Manages asynchronous access to a lock.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Public Structure ResourceAwaiter _
    Implements INotifyCompletion
public struct ResourceAwaiter : INotifyCompletion
public value class ResourceAwaiter : INotifyCompletion
[<Sealed>]
type ResourceAwaiter =  
    struct 
        interface INotifyCompletion 
    end
JScript supports the use of structures, but not the declaration of new ones.

The AsyncReaderWriterResourceLock<TMoniker, TResource>.ResourceAwaiter generic type exposes the following members.

Properties

  Name Description
Public property IsCompleted Microsoft internal only. Determines whether the lock has been issued.

Top

Methods

  Name Description
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetResult Microsoft internal only. Applies the issued lock to the caller and returns the value used to release the lock.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method OnCompleted Microsoft internal only. Sets the delegate to execute when the lock is available.
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Threading Namespace