Partager via


Phaser.ForceTermination Method

Definition

Forces this phaser to enter termination state.

[Android.Runtime.Register("forceTermination", "()V", "GetForceTerminationHandler")]
public virtual void ForceTermination ();
[<Android.Runtime.Register("forceTermination", "()V", "GetForceTerminationHandler")>]
abstract member ForceTermination : unit -> unit
override this.ForceTermination : unit -> unit
Attributes

Remarks

Forces this phaser to enter termination state. Counts of registered parties are unaffected. If this phaser is a member of a tiered set of phasers, then all of the phasers in the set are terminated. If this phaser is already terminated, this method has no effect. This method may be useful for coordinating recovery after one or more tasks encounter unexpected exceptions.

Java documentation for java.util.concurrent.Phaser.forceTermination().

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