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

Method drop

crates/opencode-tui/src/hooks/use_effect.rs:38–42  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

36
37impl Drop for UseEffect {
38 fn drop(&mut self) {
39 if let Some(mut cleanup) = self.cleanup.borrow_mut().take() {
40 cleanup();
41 }
42 }
43}

Callers

nothing calls this directly

Calls 1

cleanupFunction · 0.85

Tested by

no test coverage detected