MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / start

Method start

atomic-cli/src/output/live.rs:73–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72impl LiveOutput {
73 pub(crate) fn start() -> Option<Self> {
74 let mut active = ACTIVE.lock().unwrap_or_else(|e| e.into_inner());
75 if active.is_some() {
76 return None;
77 }
78 *active = Some(State::default());
79 Some(Self)
80 }
81}
82
83impl Drop for LiveOutput {

Callers 1

runMethod · 0.45

Calls 2

lockMethod · 0.80
into_innerMethod · 0.45

Tested by

no test coverage detected