IThreadFactory.NewThread(IRunnable) 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.
Constructs a new Thread
.
[Android.Runtime.Register("newThread", "(Ljava/lang/Runnable;)Ljava/lang/Thread;", "GetNewThread_Ljava_lang_Runnable_Handler:Java.Util.Concurrent.IThreadFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Thread? NewThread (Java.Lang.IRunnable? r);
[<Android.Runtime.Register("newThread", "(Ljava/lang/Runnable;)Ljava/lang/Thread;", "GetNewThread_Ljava_lang_Runnable_Handler:Java.Util.Concurrent.IThreadFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member NewThread : Java.Lang.IRunnable -> Java.Lang.Thread
Parameters
a runnable to be executed by new thread instance
Returns
constructed thread, or null
if the request to
create a thread is rejected
- Attributes
Remarks
Constructs a new Thread
. Implementations may also initialize priority, name, daemon status, ThreadGroup
, etc.
Java documentation for java.util.concurrent.ThreadFactory.newThread(java.lang.Runnable)
.
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.