Udostępnij za pośrednictwem


CompletableFuture.DefaultExecutor Method

Definition

Returns the default Executor used for async methods that do not specify an Executor.

[Android.Runtime.Register("defaultExecutor", "()Ljava/util/concurrent/Executor;", "GetDefaultExecutorHandler", ApiSince=31)]
public virtual Java.Util.Concurrent.IExecutor? DefaultExecutor ();
[<Android.Runtime.Register("defaultExecutor", "()Ljava/util/concurrent/Executor;", "GetDefaultExecutorHandler", ApiSince=31)>]
abstract member DefaultExecutor : unit -> Java.Util.Concurrent.IExecutor
override this.DefaultExecutor : unit -> Java.Util.Concurrent.IExecutor

Returns

the executor

Attributes

Remarks

Returns the default Executor used for async methods that do not specify an Executor. This class uses the ForkJoinPool#commonPool() if it supports more than one parallel thread, or else an Executor using one thread per async task. This method may be overridden in subclasses to return an Executor that provides at least one independent thread.

Added in 9.

Java documentation for java.util.concurrent.CompletableFuture.defaultExecutor().

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