ForkJoinPool.DrainTasksTo(ICollection<ForkJoinTask>) Method

Definition

Removes all available unexecuted submitted and forked tasks from scheduling queues and adds them to the given collection, without altering their execution status.

[Android.Runtime.Register("drainTasksTo", "(Ljava/util/Collection;)I", "GetDrainTasksTo_Ljava_util_Collection_Handler")]
protected virtual int DrainTasksTo (System.Collections.Generic.ICollection<Java.Util.Concurrent.ForkJoinTask>? c);
[<Android.Runtime.Register("drainTasksTo", "(Ljava/util/Collection;)I", "GetDrainTasksTo_Ljava_util_Collection_Handler")>]
abstract member DrainTasksTo : System.Collections.Generic.ICollection<Java.Util.Concurrent.ForkJoinTask> -> int
override this.DrainTasksTo : System.Collections.Generic.ICollection<Java.Util.Concurrent.ForkJoinTask> -> int

Parameters

c
ICollection<ForkJoinTask>

the collection to transfer elements into

Returns

Int32

the number of elements transferred

Attributes

Remarks

Java documentation for java.util.concurrent.ForkJoinPool.drainTasksTo(java.util.Collection<? super java.util.concurrent.ForkJoinTask<?>>).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to