JoinableTaskCollection.JoinTillEmptyAsync 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
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.