AsyncManualResetEvent Constructor (Boolean, Boolean)

 

Initializes a new instance of AsyncManualResetEvent.

Namespace:   Microsoft.VisualStudio.Threading
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.

Return to top
Show: