Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
84
pub mod token {
Callers
15
new
Method · 0.85
default
Method · 0.85
remote_server_requires_auth_before_connecting
Function · 0.85
oauth_callback_marks_remote_server_authorized
Function · 0.85
remove_oauth_reverts_status_to_needs_auth
Function · 0.85
router
Function · 0.85
session_routes
Function · 0.85
routes.rs
File · 0.85
stream_message
Function · 0.85
session_prompt
Function · 0.85
provider_routes
Function · 0.85
load_models_dev_data
Function · 0.85
Calls
no outgoing calls
Tested by
15
test_load_project_finds_and_merges_parent_configs
Function · 0.68
test_load_project_stops_at_git_root
Function · 0.68
test_load_project_finds_up_dot_opencode_configs
Function · 0.68
test_resolve_file_references
Function · 0.68
test_resolve_file_references_skips_comments
Function · 0.68
test_resolve_file_references_absolute_path
Function · 0.68
test_update_config
Function · 0.68
test_parse_markdown_agent_with_frontmatter
Function · 0.68
test_parse_markdown_command_with_frontmatter
Function · 0.68
test_parse_markdown_agent_with_tools_map
Function · 0.68
test_parse_markdown_agent_colon_in_description_fallback
Function · 0.68
legacy_toml_config_migrates_to_opencode_json
Function · 0.68