(mut self)
| 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 | } |
nothing calls this directly
no test coverage detected