AsyncAutoResetEvent Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AsyncAutoResetEvent() |
Initializes a new instance of the AsyncAutoResetEvent class that does not inline awaiters. |
AsyncAutoResetEvent(Boolean) |
Initializes a new instance of the AsyncAutoResetEvent class. |
AsyncAutoResetEvent()
Initializes a new instance of the AsyncAutoResetEvent class that does not inline awaiters.
public:
AsyncAutoResetEvent();
public:
AsyncAutoResetEvent();
AsyncAutoResetEvent();
public AsyncAutoResetEvent ();
Public Sub New ()
Applies to
AsyncAutoResetEvent(Boolean)
Initializes a new instance of the AsyncAutoResetEvent class.
public:
AsyncAutoResetEvent(bool allowInliningAwaiters);
public:
AsyncAutoResetEvent(bool allowInliningAwaiters);
AsyncAutoResetEvent(bool allowInliningAwaiters);
public AsyncAutoResetEvent (bool allowInliningAwaiters);
new Microsoft.VisualStudio.Threading.AsyncAutoResetEvent : bool -> Microsoft.VisualStudio.Threading.AsyncAutoResetEvent
Public Sub New (allowInliningAwaiters As Boolean)
Parameters
- allowInliningAwaiters
- Boolean
A value indicating whether to complete the task synchronously in the Set() method,
as opposed to asynchronously. false
better simulates the behavior of the
AutoResetEvent class, but true
can result in slightly better performance.
Remarks
Setting the allowInliningWaiters
parameter to false
simulates the behavior of the AutoResetEvent class, but setting it to true
can result in slightly better performance.