Share via


AsyncManualResetEvent.SetAsync Method

Sets this event to unblock callers of < WaitAsync.

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

Syntax

'Declaration
Public Function SetAsync As Task
public Task SetAsync()
public:
Task^ SetAsync()
member SetAsync : unit -> Task
public function SetAsync() : Task

Return Value

Type: System.Threading.Tasks.Task
Returns Task.

Remarks

This method may return before the signal set has propagated (so IsSet may return false for some time if it is called immediately). The returned task completes when the signal has definitely been set.

.NET Framework Security

See Also

Reference

AsyncManualResetEvent Class

Microsoft.VisualStudio.Threading Namespace