Share via


ForkJoinPool.ShutdownNow Method

Definition

Possibly attempts to cancel and/or stop all tasks, and reject all subsequently submitted tasks.

[Android.Runtime.Register("shutdownNow", "()Ljava/util/List;", "GetShutdownNowHandler")]
public override System.Collections.Generic.IList<Java.Lang.IRunnable>? ShutdownNow ();
[<Android.Runtime.Register("shutdownNow", "()Ljava/util/List;", "GetShutdownNowHandler")>]
override this.ShutdownNow : unit -> System.Collections.Generic.IList<Java.Lang.IRunnable>

Returns

an empty list

Attributes

Remarks

Possibly attempts to cancel and/or stop all tasks, and reject all subsequently submitted tasks. Invocation has no effect on execution state if this is the #commonPool(), and no additional effect if already shut down. Otherwise, tasks that are in the process of being submitted or executed concurrently during the course of this method may or may not be rejected. This method cancels both existing and unexecuted tasks, in order to permit termination in the presence of task dependencies. So the method always returns an empty list (unlike the case for some other Executors).

Java documentation for java.util.concurrent.ForkJoinPool.shutdownNow().

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