Accepts a new connection. The future resolves once a new connection has arrived at the server and is awaiting a response. The provided oneshot channel should be used to deliver the response.
(&mut self)
| 100 | /// is awaiting a response. The provided oneshot channel should be used to |
| 101 | /// deliver the response. |
| 102 | async fn accept(&mut self) -> oneshot::Sender<Response> { |
| 103 | self.conn_rx |
| 104 | .recv() |
| 105 | .await |
| 106 | .expect("server unexpectedly closed channel") |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | #[mz_ore::test(tokio::test(flavor = "multi_thread", worker_threads = 1))] |
no test coverage detected