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

Method new

crates/opencode-session/src/todo.rs:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22impl TodoManager {
23 pub fn new() -> Self {
24 Self {
25 state: Arc::new(RwLock::new(HashMap::new())),
26 db: None,
27 bus: None,
28 }
29 }
30
31 pub fn with_database(pool: sqlx::SqlitePool) -> Self {
32 Self {

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected