MCPcopy Create free account
hub / github.com/AI45Lab/Code / is_closed

Method is_closed

core/src/agent_api/session_close.rs:49–51  ·  view source on GitHub ↗

Return whether `close()` has already been called.

(&self)

Source from the content-addressed store, hash-verified

47impl SessionCloseHandle {
48 /// Return whether `close()` has already been called.
49 pub(crate) fn is_closed(&self) -> bool {
50 self.closed.load(Ordering::Acquire)
51 }
52
53 /// Perform the full session close sequence. Idempotent: subsequent calls
54 /// are no-ops and are guaranteed not to panic.

Callers 2

close_sessionFunction · 0.45
bail_if_closedFunction · 0.45

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected