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

Method spawn_with

crates/openshell-server/src/readiness.rs:126–130  ·  view source on GitHub ↗
(store: Arc<Store>, interval: Duration, timeout: Duration)

Source from the content-addressed store, hash-verified

124 /// deployments.
125 #[must_use]
126 pub fn spawn_with(store: Arc<Store>, interval: Duration, timeout: Duration) -> Self {
127 let (tx, rx) = watch::channel(HealthState::Initializing);
128 tokio::spawn(monitor_loop(store, tx, interval, timeout));
129 Self { receiver: rx }
130 }
131
132 /// Subscribe to state updates.
133 ///

Callers

nothing calls this directly

Calls 2

monitor_loopFunction · 0.85
spawnFunction · 0.50

Tested by

no test coverage detected