Skip to main content

select_leading_session_command

Function select_leading_session_command 

Source
pub fn select_leading_session_command(candidates: &[ClaimCandidate]) -> usize
Expand description

Select a leading session-command batch.

Returns 1 only when the earliest ready claimable batch is a QueuedWorkClass::SessionCommand. Session commands are intentionally claimed one batch at a time so the runtime applies each mutation and completion through its normal fenced commit path before moving to the next.