MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / make_shutdown

Function make_shutdown

crates/openshell-server/src/supervisor_session.rs:832–834  ·  view source on GitHub ↗

Returns a shutdown sender with its receiver immediately dropped. Tests that don't observe the shutdown signal can use this to satisfy the `register` signature without the receiver noise.

()

Source from the content-addressed store, hash-verified

830 /// that don't observe the shutdown signal can use this to satisfy the
831 /// `register` signature without the receiver noise.
832 fn make_shutdown() -> oneshot::Sender<()> {
833 oneshot::channel::<()>().0
834 }
835
836 fn sandbox_record(id: &str, name: &str) -> Sandbox {
837 Sandbox {

Calls

no outgoing calls