IExecutorService.Submit IExecutorService.Submit Method

Definition

Overloads

Submit(IRunnable) Submit(IRunnable)

Submits a Runnable task for execution and returns a Future representing that task.

Submit(ICallable) Submit(ICallable)
Submit(IRunnable, Object) Submit(IRunnable, Object)

Submit(IRunnable) Submit(IRunnable)

Submits a Runnable task for execution and returns a Future representing that task.

[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 Java.Util.Concurrent.IFuture Submit (Java.Lang.IRunnable task);
abstract member Submit : Java.Lang.IRunnable -> Java.Util.Concurrent.IFuture

Parameters

task
IRunnable IRunnable

the task to submit

Returns

Exceptions

if the task cannot be scheduled for execution

Remarks

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.

Submit(ICallable) Submit(ICallable)

[Android.Runtime.Register("submit", "(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;", "GetSubmit_Ljava_util_concurrent_Callable_Handler:Java.Util.Concurrent.IExecutorServiceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Util.Concurrent.IFuture Submit (Java.Util.Concurrent.ICallable task);
abstract member Submit : Java.Util.Concurrent.ICallable -> Java.Util.Concurrent.IFuture

Parameters

Returns

Remarks

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.

Submit(IRunnable, Object) Submit(IRunnable, Object)

[Android.Runtime.Register("submit", "(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;", "GetSubmit_Ljava_lang_Runnable_Ljava_lang_Object_Handler:Java.Util.Concurrent.IExecutorServiceInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public Java.Util.Concurrent.IFuture Submit (Java.Lang.IRunnable task, Java.Lang.Object result);
abstract member Submit : Java.Lang.IRunnable * Java.Lang.Object -> Java.Util.Concurrent.IFuture

Parameters

result
Object Object

Returns

Remarks

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