MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / with_bus

Method with_bus

crates/opencode-session/src/status.rs:61–66  ·  view source on GitHub ↗

Create a status manager with bus event publishing.

(bus: Arc<Bus>)

Source from the content-addressed store, hash-verified

59
60 /// Create a status manager with bus event publishing.
61 pub fn with_bus(bus: Arc<Bus>) -> Self {
62 Self {
63 state: Arc::new(RwLock::new(HashMap::new())),
64 bus: Some(bus),
65 }
66 }
67
68 /// Get the status for a session. Returns Idle if not tracked.
69 /// Matches TS `SessionStatus.get(sessionID)`.

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected