AsyncBarrier.SignalAndWait Method
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
SignalAndWait() |
Signals that a participant is ready, and returns a Task that completes when all other participants have also signaled ready. |
SignalAndWait(CancellationToken) |
Signals that a participant is ready, and returns a Task that completes when all other participants have also signaled ready. |
SignalAndWait()
Signals that a participant is ready, and returns a Task that completes when all other participants have also signaled ready.
public:
System::Threading::Tasks::Task ^ SignalAndWait();
public System.Threading.Tasks.Task SignalAndWait ();
member this.SignalAndWait : unit -> System.Threading.Tasks.Task
Public Function SignalAndWait () As Task
Returns
A Task, which will complete (or may already be completed) when the last participant calls this method.
Applies to
SignalAndWait(CancellationToken)
Signals that a participant is ready, and returns a Task that completes when all other participants have also signaled ready.
public System.Threading.Tasks.ValueTask SignalAndWait (System.Threading.CancellationToken cancellationToken);
member this.SignalAndWait : System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function SignalAndWait (cancellationToken As CancellationToken) As ValueTask
Parameters
- cancellationToken
- CancellationToken
A token that signals the caller's lost interest in waiting. The signal effect of the method is not canceled with the token.
Returns
A task which will complete (or may already be completed) when the last participant calls this method.