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

Function with_runtime

crates/testing/src/modules.rs:43–50  ·  view source on GitHub ↗
(func: F)

Source from the content-addressed store, hash-verified

41}
42
43fn with_runtime<F>(func: F)
44where
45 F: FnOnce(&Runtime),
46{
47 let runtime = start_runtime();
48
49 func(&runtime);
50}
51
52pub(crate) fn module_path(name: &str) -> PathBuf {
53 let root = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));

Callers 2

with_module_asyncMethod · 0.85
with_moduleMethod · 0.85

Calls 1

start_runtimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…