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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.