ForkJoinPool.DrainTasksTo(ICollection<ForkJoinTask>) 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.
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
the collection to transfer elements into
Returns
the number of elements transferred
- Attributes
Remarks
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.