IExecutorService.Close Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.
[Android.Runtime.Register("close", "()V", "GetCloseHandler:Java.Util.Concurrent.IExecutorService, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public virtual void Close();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler:Java.Util.Concurrent.IExecutorService, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member Close : unit -> unit
override this.Close : unit -> unit
- Attributes
Remarks
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. This method waits until all tasks have completed execution and the executor has terminated.
If interrupted while waiting, this method stops all executing tasks as if by invoking #shutdownNow()
. It then continues to wait until all actively executing tasks have completed. Tasks that were awaiting execution are not executed. The interrupt status will be re-asserted before this method returns.
If already terminated, invoking this method has no effect.
Added in 19.
Java documentation for java.util.concurrent.ExecutorService.close()
.
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.