AsyncManualResetEvent Constructor (Boolean, Boolean)
Visual Studio 2015
Initializes a new instance of AsyncManualResetEvent.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
public: AsyncManualResetEvent( bool initialState = false, bool allowInliningAwaiters = false )
Parameters
- initialState
-
Type:
System::Boolean
true if the event should be initially signaled, otherwise false.
- allowInliningWaiters
true if the task should be completed synchronously (as opposed to asynchronously) in the SetAsync method.
false better simulates the behavior of theManualResetEventSlim class, but true can result in slightly better performance.
Show: