Partilhar via


AsyncBarrier Class

Definition

An asynchronous barrier that blocks the signaler until all other participants have signaled.

public ref class AsyncBarrier
[Windows::Foundation::Metadata::WebHostHidden]
class AsyncBarrier
public class AsyncBarrier
type AsyncBarrier = class
Public Class AsyncBarrier
Inheritance
AsyncBarrier

Constructors

AsyncBarrier(Int32)

Initializes a new instance of the AsyncBarrier class.

Methods

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.

Applies to

Thread Safety

This type is thread-safe for all members.