JoinableTaskCollection.JoinTillEmptyAsync Method

Definition

Overloads

JoinTillEmptyAsync()

Joins the caller's context to this collection till the collection is empty.

JoinTillEmptyAsync(CancellationToken)

Joins the caller's context to this collection till the collection is empty.

JoinTillEmptyAsync()

Joins the caller's context to this collection till the collection is empty.

public:
 System::Threading::Tasks::Task ^ JoinTillEmptyAsync();
public System.Threading.Tasks.Task JoinTillEmptyAsync ();
member this.JoinTillEmptyAsync : unit -> System.Threading.Tasks.Task
Public Function JoinTillEmptyAsync () As Task

Returns

A task that completes when this collection is empty.

Applies to

JoinTillEmptyAsync(CancellationToken)

Joins the caller's context to this collection till the collection is empty.

public:
 System::Threading::Tasks::Task ^ JoinTillEmptyAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task JoinTillEmptyAsync (System.Threading.CancellationToken cancellationToken);
member this.JoinTillEmptyAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function JoinTillEmptyAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

A cancellation token.

Returns

A task that completes when this collection is empty, or is canceled when cancellationToken is canceled.

Applies to