Compartir a través de


AsyncBarrier.SignalAndWait Method

Definition

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.

Applies to