(py: Python, ctx: ClientContextPtr)
| 24 | } |
| 25 | |
| 26 | pub(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 | } |
no test coverage detected