ThreadPoolExecutor.PrestartCoreThread 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.
Starts a core thread, causing it to idly wait for work.
[Android.Runtime.Register("prestartCoreThread", "()Z", "GetPrestartCoreThreadHandler")]
public virtual bool PrestartCoreThread ();
[<Android.Runtime.Register("prestartCoreThread", "()Z", "GetPrestartCoreThreadHandler")>]
abstract member PrestartCoreThread : unit -> bool
override this.PrestartCoreThread : unit -> bool
Returns
true
if a thread was started
- Attributes
Remarks
Starts a core thread, causing it to idly wait for work. This overrides the default policy of starting core threads only when new tasks are executed. This method will return false
if all core threads have already been started.
Java documentation for java.util.concurrent.ThreadPoolExecutor.prestartCoreThread()
.
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.