次の方法で共有


Phaser.AwaitAdvance(Int32) Method

Definition

Awaits the phase of this phaser to advance from the given phase value, returning immediately if the current phase is not equal to the given phase value or this phaser is terminated.

[Android.Runtime.Register("awaitAdvance", "(I)I", "GetAwaitAdvance_IHandler")]
public virtual int AwaitAdvance (int phase);
[<Android.Runtime.Register("awaitAdvance", "(I)I", "GetAwaitAdvance_IHandler")>]
abstract member AwaitAdvance : int -> int
override this.AwaitAdvance : int -> int

Parameters

phase
Int32

an arrival phase number, or negative value if terminated; this argument is normally the value returned by a previous call to arrive or arriveAndDeregister.

Returns

the next arrival phase number, or the argument if it is negative, or the (negative) #getPhase() current phase if terminated

Attributes

Remarks

Awaits the phase of this phaser to advance from the given phase value, returning immediately if the current phase is not equal to the given phase value or this phaser is terminated.

Java documentation for java.util.concurrent.Phaser.awaitAdvance(int).

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