AsyncManualResetEvent Class

A flavor of ManualResetEvent that can be asynchronously awaited.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Threading.AsyncManualResetEvent

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

Syntax

'Declaration
Public Class AsyncManualResetEvent
public class AsyncManualResetEvent
public ref class AsyncManualResetEvent
type AsyncManualResetEvent =  class end
public class AsyncManualResetEvent

The AsyncManualResetEvent type exposes the following members.

Constructors

  Name Description
Public method AsyncManualResetEvent Initializes a new instance of AsyncManualResetEvent.

Top

Properties

  Name Description
Public property IsSet Determines whether the event is currently in a signaled state.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAwaiter Gets an awaiter that completes when this event is signaled.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method PulseAllAsync Sets and immediately resets this event, allowing all current waiters to unblock.
Public method Reset Resets this event to a state that will block callers of WaitAsync.
Public method SetAsync Sets this event to unblock callers of < WaitAsync.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method WaitAsync Returns a task that will be completed when this event is set.

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