Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
91
fn in_simulation() -> bool {
92
IN_SIMULATION.with(Cell::get)
93
}
94
95
impl Drop for SimulationThreadGuard {
96
fn drop(&mut self) {
Callers
2
pthread_attr_init
Function · 0.85
getrandom
Function · 0.85
Calls
1
with
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…