Sdílet prostřednictvím


IExecutor.Execute(IRunnable) Method

Definition

Executes the given command at some time in the future.

[Android.Runtime.Register("execute", "(Ljava/lang/Runnable;)V", "GetExecute_Ljava_lang_Runnable_Handler:Java.Util.Concurrent.IExecutorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Execute (Java.Lang.IRunnable? command);
[<Android.Runtime.Register("execute", "(Ljava/lang/Runnable;)V", "GetExecute_Ljava_lang_Runnable_Handler:Java.Util.Concurrent.IExecutorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Execute : Java.Lang.IRunnable -> unit

Parameters

command
IRunnable

the runnable task

Attributes

Exceptions

if this task cannot be accepted for execution

if command is null

Remarks

Executes the given command at some time in the future. The command may execute in a new thread, in a pooled thread, or in the calling thread, at the discretion of the Executor implementation.

Java documentation for java.util.concurrent.Executor.execute(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.

Applies to