Share via


AsynchronousChannelGroup.ShutdownNow Method

Definition

Shuts down the group and closes all open channels in the group.

[Android.Runtime.Register("shutdownNow", "()V", "GetShutdownNowHandler", ApiSince=26)]
public abstract void ShutdownNow ();
[<Android.Runtime.Register("shutdownNow", "()V", "GetShutdownNowHandler", ApiSince=26)>]
abstract member ShutdownNow : unit -> unit
Attributes

Remarks

Shuts down the group and closes all open channels in the group.

In addition to the actions performed by the #shutdown() shutdown method, this method invokes the AsynchronousChannel#close close method on all open channels in the group. This method does not attempt to stop or interrupt threads that are executing completion handlers. The group terminates when all actively executing completion handlers have run to completion and all resources have been released. This method may be invoked at any time. If some other thread has already invoked it, then another invocation will block until the first invocation is complete, after which it will return without effect.

Java documentation for java.nio.channels.AsynchronousChannelGroup.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