MCPcopy Create free account
hub / github.com/f0rr0/oliphaunt / stop

Method stop

src/pglite/server.rs:132–145  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

130 }
131
132 fn stop(&mut self) -> Result<()> {
133 self.shutdown.store(true, Ordering::SeqCst);
134 {
135 let _phase = timing::phase("server.shutdown_wake");
136 wake_listener(&self.endpoint);
137 }
138 if let Some(handle) = self.handle.take() {
139 let _phase = timing::phase("server.thread_join");
140 handle
141 .join()
142 .map_err(|_| anyhow!("pglite server thread panicked"))??;
143 }
144 Ok(())
145 }
146}
147
148impl Drop for PgliteServer {

Callers 3

shutdownMethod · 0.80
dropMethod · 0.80
stopFunction · 0.80

Calls 3

phaseFunction · 0.85
wake_listenerFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected