Phaser.BulkRegister(Int32) 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.
Adds the given number of new unarrived parties to this phaser.
[Android.Runtime.Register("bulkRegister", "(I)I", "GetBulkRegister_IHandler")]
public virtual int BulkRegister (int parties);
[<Android.Runtime.Register("bulkRegister", "(I)I", "GetBulkRegister_IHandler")>]
abstract member BulkRegister : int -> int
override this.BulkRegister : int -> int
Parameters
- parties
- Int32
the number of additional parties required to advance to the next phase
Returns
the arrival phase number to which this registration applied. If this value is negative, then this phaser has terminated, in which case registration has no effect.
- Attributes
Exceptions
if attempting to register more than the maximum supported number of parties
if parties
Remarks
Adds the given number of new unarrived parties to this phaser. If an ongoing invocation of #onAdvance
is in progress, this method may await its completion before returning. If this phaser has a parent, and the given number of parties is greater than zero, and this phaser previously had no registered parties, this child phaser is also registered with its parent. If this phaser is terminated, the attempt to register has no effect, and a negative value is returned.
Java documentation for java.util.concurrent.Phaser.bulkRegister(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.