ThreadPoolExecutor.AllowsCoreThreadTimeOut 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 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.