MCPcopy Create free account
hub / github.com/Rustixir/tokio_sky / run

Method run

src/processor.rs:69–86  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

67
68 #[inline]
69 pub fn run(mut self) {
70 // spawn
71 tokio::spawn(async move {
72
73 self.proc.init().await;
74
75 while let Some(msg) = self.recv.recv().await {
76 match self.proc.handle_message(msg).await {
77 ProcResult::Continue => (),
78 ProcResult::Dispatch(m, pk) => {
79
80 let _ = self.dispatcher.dispatch(m, pk).await;
81
82 }
83 }
84 }
85 });
86 }
87}

Callers

nothing calls this directly

Calls 3

dispatchMethod · 0.80
initMethod · 0.45
handle_messageMethod · 0.45

Tested by

no test coverage detected