MCPcopy Create free account
hub / github.com/AI45Lab/Code / block_on

Method block_on

sdk/node/src/lib.rs:134–140  ·  view source on GitHub ↗
(&self, fut: F)

Source from the content-addressed store, hash-verified

132 }
133
134 fn block_on<F: Future>(&self, fut: F) -> F::Output {
135 if let Ok(handle) = tokio::runtime::Handle::try_current() {
136 handle.block_on(fut)
137 } else {
138 fallback_runtime().block_on(fut)
139 }
140 }
141}
142
143fn get_runtime() -> NapiRuntime {

Callers 15

run_quickjs_scriptFunction · 0.80
load_session_dataFunction · 0.80
load_artifactsFunction · 0.80
load_trace_eventsFunction · 0.80
load_run_recordsFunction · 0.80
load_subagent_tasksFunction · 0.80
fetch_session_mcp_toolsFunction · 0.80
resolve_session_memoryFunction · 0.80
resolve_session_storeFunction · 0.80

Calls 1

fallback_runtimeFunction · 0.85