ForkJoinPool.CommonPool 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.
Returns the common pool instance.
[Android.Runtime.Register("commonPool", "()Ljava/util/concurrent/ForkJoinPool;", "", ApiSince=24)]
public static Java.Util.Concurrent.ForkJoinPool? CommonPool ();
[<Android.Runtime.Register("commonPool", "()Ljava/util/concurrent/ForkJoinPool;", "", ApiSince=24)>]
static member CommonPool : unit -> Java.Util.Concurrent.ForkJoinPool
Returns
the common pool instance
- Attributes
Remarks
Returns the common pool instance. This pool is statically constructed; its run state is unaffected by attempts to #shutdown
or #shutdownNow
. However this pool and any ongoing processing are automatically terminated upon program System#exit
. Any program that relies on asynchronous task processing to complete before program termination should invoke commonPool().
#awaitQuiescence awaitQuiescence
, before exit.
Added in 1.8.
Java documentation for java.util.concurrent.ForkJoinPool.commonPool()
.
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.