ThreadPoolExecutor.AllowsCoreThreadTimeOut Method

Definition

Returns true if this pool allows core threads to time out and terminate if no tasks arrive within the keepAlive time, being replaced if needed when new tasks arrive.

[Android.Runtime.Register("allowsCoreThreadTimeOut", "()Z", "GetAllowsCoreThreadTimeOutHandler")]
public virtual bool AllowsCoreThreadTimeOut ();
[<Android.Runtime.Register("allowsCoreThreadTimeOut", "()Z", "GetAllowsCoreThreadTimeOutHandler")>]
abstract member AllowsCoreThreadTimeOut : unit -> bool
override this.AllowsCoreThreadTimeOut : unit -> bool

Returns

true if core threads are allowed to time out, else false

Attributes

Remarks

Returns true if this pool allows core threads to time out and terminate if no tasks arrive within the keepAlive time, being replaced if needed when new tasks arrive. When true, the same keep-alive policy applying to non-core threads applies also to core threads. When false (the default), core threads are never terminated due to lack of incoming tasks.

Added in 1.6.

Java documentation for java.util.concurrent.ThreadPoolExecutor.allowsCoreThreadTimeOut().

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