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

Function latest

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

Source from the content-addressed store, hash-verified

49}
50
51pub(crate) fn latest() -> String {
52 ACTIVE
53 .lock()
54 .unwrap_or_else(|e| e.into_inner())
55 .as_ref()
56 .map(|state| state.latest.clone())
57 .unwrap_or_default()
58}
59
60pub(crate) fn capture(kind: Kind, message: &str) -> bool {
61 let mut active = ACTIVE.lock().unwrap_or_else(|e| e.into_inner());

Callers 1

startMethod · 0.85

Calls 4

as_refMethod · 0.80
lockMethod · 0.80
into_innerMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected