MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Function new

crates/opencode-util/src/util.rs:79–81  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

77 pub type AsyncLock<T> = Arc<Mutex<T>>;
78
79 pub fn new<T: Send + 'static>(value: T) -> AsyncLock<T> {
80 Arc::new(Mutex::new(value))
81 }
82}
83
84pub mod token {

Callers 15

newMethod · 0.85
defaultMethod · 0.85
routerFunction · 0.85
session_routesFunction · 0.85
routes.rsFile · 0.85
stream_messageFunction · 0.85
session_promptFunction · 0.85
provider_routesFunction · 0.85
load_models_dev_dataFunction · 0.85

Calls

no outgoing calls