MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / runtime

Function runtime

crates/cli/src/tasks/javascript.rs:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17static RUNTIME: OnceLock<Runtime> = OnceLock::new();
18
19fn runtime() -> &'static Runtime {
20 RUNTIME.get_or_init(|| {
21 Builder::new_multi_thread()
22 .enable_all()
23 .build()
24 .expect("build tokio runtime")
25 })
26}
27
28/// Synchronously run an async future from a non-async function.
29///

Callers 1

run_blockingFunction · 0.85

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…