Java.Util.Concurrent.IExecutor.Execute Method
Executes the given command at some time in the future.

Syntax

[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)

Parameters

command
the runnable task

Exceptions

TypeReason
Java.Util.Concurrent.RejectedExecutionExceptionif this task cannot be accepted for execution
Java.Lang.NullPointerExceptionif 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.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1