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

Function in_simulation

crates/runtime/src/sim_std.rs:91–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91fn in_simulation() -> bool {
92 IN_SIMULATION.with(Cell::get)
93}
94
95impl Drop for SimulationThreadGuard {
96 fn drop(&mut self) {

Callers 2

pthread_attr_initFunction · 0.85
getrandomFunction · 0.85

Calls 1

withMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…