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

Method exit

crates/core/src/host/module_host.rs:3092–3097  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

3090 }
3091
3092 pub async fn exit(&self) {
3093 // As in `Self::marked_closed`, `Relaxed` is sufficient because we're not synchronizing any external state.
3094 self.closed.store(true, std::sync::atomic::Ordering::Relaxed);
3095 self.scheduler().close();
3096 self.exited().await;
3097 }
3098
3099 pub async fn exited(&self) {
3100 self.scheduler().closed().await;

Callers 15

pushFunction · 0.80
push.tsFile · 0.80
mainFunction · 0.80
main.tsFile · 0.80
load_schemasFunction · 0.80
onConnectErrorFunction · 0.80

Calls 3

exitedMethod · 0.80
closeMethod · 0.65
schedulerMethod · 0.45

Tested by

no test coverage detected