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

Method with_bus

crates/opencode-session/src/todo.rs:39–45  ·  view source on GitHub ↗
(bus: Arc<Bus>)

Source from the content-addressed store, hash-verified

37 }
38
39 pub fn with_bus(bus: Arc<Bus>) -> Self {
40 Self {
41 state: Arc::new(RwLock::new(HashMap::new())),
42 db: None,
43 bus: Some(bus),
44 }
45 }
46
47 pub async fn update(&self, session_id: &str, todos: Vec<TodoInfo>) {
48 let todos_payload = todos.clone();

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected