Compartir a través de


ForkJoinPool.IsTerminating Property

Definition

Returns true if the process of termination has commenced but not yet completed.

public virtual bool IsTerminating { [Android.Runtime.Register("isTerminating", "()Z", "GetIsTerminatingHandler")] get; }
[<get: Android.Runtime.Register("isTerminating", "()Z", "GetIsTerminatingHandler")>]
member this.IsTerminating : bool

Property Value

true if terminating but not yet terminated

Attributes

Remarks

Returns true if the process of termination has commenced but not yet completed. This method may be useful for debugging. A return of true reported a sufficient period after shutdown may indicate that submitted tasks have ignored or suppressed interruption, or are waiting for I/O, causing this executor not to properly terminate. (See the advisory notes for class ForkJoinTask stating that tasks should not normally entail blocking operations. But if they do, they must abort them on interrupt.)

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

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