MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / end_turn

Method end_turn

atomic-agent/src/turn/session.rs:614–618  ·  view source on GitHub ↗

Mark the end of the current turn and increment the turn count. Returns the turn number that just completed (1-indexed).

(&mut self)

Source from the content-addressed store, hash-verified

612 ///
613 /// Returns the turn number that just completed (1-indexed).
614 pub fn end_turn(&mut self) -> u32 {
615 self.turn_count += 1;
616 self.current_turn_started_at = None;
617 self.turn_count
618 }
619
620 /// Returns the duration of the current turn in milliseconds, if a turn is active.
621 pub fn current_turn_duration_ms(&self) -> Option<u64> {

Callers 5

test_end_turnFunction · 0.45
test_serde_roundtripFunction · 0.45
test_full_lifecycleFunction · 0.45
handle_session_endMethod · 0.45
handle_turn_endMethod · 0.45

Calls

no outgoing calls

Tested by 3

test_end_turnFunction · 0.36
test_serde_roundtripFunction · 0.36
test_full_lifecycleFunction · 0.36