Click or drag to resize

AsyncAutoResetEvent Class

Implements an async/await friendly equivalent of AutoResetEvent.
Inheritance Hierarchy
SystemObject
  Neon.TasksAsyncAutoResetEvent

Namespace:  Neon.Tasks
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.1.0
Syntax
public class AsyncAutoResetEvent : IDisposable

The AsyncAutoResetEvent type exposes the following members.

Constructors
  NameDescription
Public methodAsyncAutoResetEvent
Constructor.
Top
Methods
  NameDescription
Public methodClose
Releases any important resources associated with the instance.
Public methodDispose
Releases any important resources associated with the instance.
Protected methodDispose(Boolean)
Releases any important resources associated with the instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizer.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Sets the state of the event to unsignalled, so that tasks will have to wait.
Public methodSet
Sets the state of the event to signalled allowing a single task that is currently waiting or the next task that waits on the event to proceed.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWaitAsync
Waits until the event is signalled.
Top
Thread Safety
Instance members of this type are safe for multi-threaded operations.
See Also