MCPcopy Create free account
hub / github.com/AI45Lab/Code / spawn_collector

Method spawn_collector

core/src/agent_api/runtime_events.rs:83–92  ·  view source on GitHub ↗
(
        self,
        mut runtime_rx: mpsc::Receiver<AgentEvent>,
    )

Source from the content-addressed store, hash-verified

81 }
82
83 pub(super) fn spawn_collector(
84 self,
85 mut runtime_rx: mpsc::Receiver<AgentEvent>,
86 ) -> JoinHandle<()> {
87 tokio::spawn(async move {
88 while let Some(event) = runtime_rx.recv().await {
89 self.observe(&event).await;
90 }
91 })
92 }
93
94 pub(super) fn spawn_forwarder(
95 self,

Callers 1

startMethod · 0.80

Calls 1

observeMethod · 0.80

Tested by

no test coverage detected