MCPcopy Create free account
hub / github.com/hashintel/hash / shutdown_and_wait

Method shutdown_and_wait

apps/hash-graph/src/subcommand/mod.rs:83–87  ·  view source on GitHub ↗

Initiates graceful shutdown and waits for all tasks to drain.

(&self)

Source from the content-addressed store, hash-verified

81
82 /// Initiates graceful shutdown and waits for all tasks to drain.
83 pub(crate) async fn shutdown_and_wait(&self) {
84 self.shutdown.cancel();
85 self.tracker.close();
86 self.tracker.wait().await;
87 }
88}
89
90/// Shared healthcheck arguments for all server subcommands.

Callers 1

serverFunction · 0.80

Calls 2

cancelMethod · 0.65
closeMethod · 0.45

Tested by

no test coverage detected