ThreadPoolExecutor.Remove(IRunnable) Method

Definition

Removes this task from the executor's internal queue if it is present, thus causing it not to be run if it has not already started.

[Android.Runtime.Register("remove", "(Ljava/lang/Runnable;)Z", "GetRemove_Ljava_lang_Runnable_Handler")]
public virtual bool Remove (Java.Lang.IRunnable? task);
[<Android.Runtime.Register("remove", "(Ljava/lang/Runnable;)Z", "GetRemove_Ljava_lang_Runnable_Handler")>]
abstract member Remove : Java.Lang.IRunnable -> bool
override this.Remove : Java.Lang.IRunnable -> bool

Parameters

task
IRunnable

the task to remove

Returns

Boolean

true if the task was removed

Attributes

Remarks

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