MCPcopy Create free account
hub / github.com/agenticsorg/lean-agentic / stop

Method stop

runtime/src/runtime.rs:58–67  ·  view source on GitHub ↗

Stop the runtime

(&self)

Source from the content-addressed store, hash-verified

56
57 /// Stop the runtime
58 pub async fn stop(&self) {
59 if self
60 .running
61 .compare_exchange(true, false, Ordering::SeqCst, Ordering::SeqCst)
62 .is_ok()
63 {
64 self.scheduler.stop().await;
65 tracing::info!("Runtime stopped");
66 }
67 }
68
69 /// Spawn a new agent
70 pub async fn spawn<T, F, Fut>(&self, behavior: F) -> AgentRef<T>

Callers 14

spawn_benchmarkFunction · 0.45
benchmark_spawn_latencyFunction · 0.45
benchmark_work_stealingFunction · 0.45
quorum_benchmarkFunction · 0.45
shard_benchmarkFunction · 0.45
broadcast_benchmarkFunction · 0.45
ping_pong_benchmarkFunction · 0.45
throughput_benchmarkFunction · 0.45
benchmark_latencyFunction · 0.45
test_runtime_start_stopFunction · 0.45
test_runtime_spawnFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_runtime_start_stopFunction · 0.36
test_runtime_spawnFunction · 0.36