MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / stop_server_impl

Function stop_server_impl

crates/pyhq/src/client/server.rs:26–36  ·  view source on GitHub ↗
(py: Python, ctx: ClientContextPtr)

Source from the content-addressed store, hash-verified

24}
25
26pub(crate) fn stop_server_impl(py: Python, ctx: ClientContextPtr) -> PyResult<()> {
27 run_future(async move {
28 let mut ctx = borrow_mut!(py, ctx);
29 ctx.session
30 .connection()
31 .send(FromClientMessage::Stop)
32 .await
33 .map_py_err()?;
34 Ok(())
35 })
36}

Callers 1

stop_serverFunction · 0.85

Calls 4

run_futureFunction · 0.85
map_py_errMethod · 0.80
connectionMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected