Java.Util.Concurrent.ThreadPoolExecutor.Execute Method
Executes the given task sometime in the future.

Syntax

[Android.Runtime.Register("execute", "(Ljava/lang/Runnable;)V", "GetExecute_Ljava_lang_Runnable_Handler")]
public override void Execute (Java.Lang.IRunnable command)

Parameters

command
the task to execute

Exceptions

TypeReason
Java.Util.Concurrent.RejectedExecutionExceptionat discretion of RejectedExecutionHandler, if the task cannot be accepted for execution
Java.Lang.NullPointerExceptionif command is null

Remarks

Executes the given task sometime in the future. The task may execute in a new thread or in an existing pooled thread. If the task cannot be submitted for execution, either because this executor has been shutdown or because its capacity has been reached, the task is handled by the current RejectedExecutionHandler.

[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