Share via


Phaser.ArriveAndDeregister Method

Definition

Arrives at this phaser and deregisters from it without waiting for others to arrive.

[Android.Runtime.Register("arriveAndDeregister", "()I", "GetArriveAndDeregisterHandler")]
public virtual int ArriveAndDeregister ();
[<Android.Runtime.Register("arriveAndDeregister", "()I", "GetArriveAndDeregisterHandler")>]
abstract member ArriveAndDeregister : unit -> int
override this.ArriveAndDeregister : unit -> int

Returns

the arrival phase number, or a negative value if terminated

Attributes

Exceptions

if not terminated and the number of registered or unarrived parties would become negative

Remarks

Arrives at this phaser and deregisters from it without waiting for others to arrive. Deregistration reduces the number of parties required to advance in future phases. If this phaser has a parent, and deregistration causes this phaser to have zero parties, this phaser is also deregistered from its parent.

It is a usage error for an unregistered party to invoke this method. However, this error may result in an IllegalStateException only upon some subsequent operation on this phaser, if ever.

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

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