ReturnPolicy
Controls when gameHost returns the leader RaftNode to the caller.
FullMembership (the default) suspends until all
peerCountvoters have joined; the leader is returned only once the roster is complete. This is the original bootstrap behaviour.Quorum returns as soon as a majority of
peerCountvoters are present (peerCount / 2 + 1), so the game can start without blocking on the slowest or absent peer. gameHost then keeps admitting the remaining ("latecomer") voters in the background on the caller's scope for the life of the session — the admission door stays open until the roster reachespeerCount, so a latecomer joins and is promoted whenever it connects, however late. ItsgameJoinonly ever suspends in the normal learner-waiting-for-promotion sense, which always resolves; there is no window after which a join is silently dead. (A peer connecting once the roster is already full is the separate, deferred concern in #587.)
This is an explicit functional mode — which path runs decides whether the host blocks on full membership — so it is a named enum rather than a boolean flag (per the optional≠tuning convention).
Entries
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.