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

Boolean

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

Attributes

Remarks

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