(&self, mut payload: Json, timeout: Duration)
| 490 | } |
| 491 | |
| 492 | fn request_blocking(&self, mut payload: Json, timeout: Duration) -> FlowResult<WorkerEnvelope> { |
| 493 | let receiver = self.send_request(&mut payload)?; |
| 494 | receiver |
| 495 | .recv_timeout(timeout) |
| 496 | .map_err(|err| FlowError::Internal(format!("worker did not initialize: {err}"))) |
| 497 | } |
| 498 | |
| 499 | fn send_request(&self, payload: &mut Json) -> FlowResult<std_mpsc::Receiver<WorkerEnvelope>> { |
| 500 | let id = self.next_request_id(); |
no test coverage detected