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

Method block_on

crates/runtime/src/sim/executor/mod.rs:152–154  ·  view source on GitHub ↗

Drive a top-level future to completion on the simulation executor. While the future runs, spawned tasks share the same deterministic scheduler, timer wheel, and runtime RNG.

(&mut self, future: F)

Source from the content-addressed store, hash-verified

150 /// While the future runs, spawned tasks share the same deterministic
151 /// scheduler, timer wheel, and runtime RNG.
152 pub fn block_on<F: Future>(&mut self, future: F) -> F::Output {
153 self.executor.block_on(future)
154 }
155
156 /// Return the amount of virtual time elapsed in this runtime.
157 pub fn elapsed(&self) -> Duration {

Callers 15

run_benchmarksFunction · 0.45
cmd_analyzeFunction · 0.45
run_mode_benchmarksFunction · 0.45
build_implMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 9

scheduleMethod · 0.80
run_all_readyMethod · 0.80
wake_next_timerMethod · 0.80
sendMethod · 0.65
newFunction · 0.50
noopFunction · 0.50
cloneMethod · 0.45
metadataMethod · 0.45
pollMethod · 0.45

Tested by 15

mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
test_sql_connFunction · 0.36
test_row_limitFunction · 0.36
test_row_dmlFunction · 0.36