Java.Util.Concurrent.IExecutorService.Submit Method
Submits a Runnable task for execution and returns a Future representing that task.

Syntax

[Android.Runtime.Register("submit", "(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;", "GetSubmit_Ljava_lang_Runnable_Handler:Java.Util.Concurrent.IExecutorServiceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IFuture Submit (Java.Lang.IRunnable task)

Parameters

task
the task to submit

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Util.Concurrent.RejectedExecutionExceptionif the task cannot be scheduled for execution
Java.Lang.NullPointerExceptionif the task is null

Remarks

Submits a Runnable task for execution and returns a Future representing that task. The Future's get method will return null upon successful completion.

[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