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

Method new

crates/opencode-tui/src/hooks/use_effect.rs:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10impl UseEffect {
11 pub fn new() -> Self {
12 Self {
13 cleanup: Rc::new(RefCell::new(None)),
14 }
15 }
16
17 pub fn run<F>(&self, effect: F)
18 where

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected