(
&self,
process_identifier: i64,
wait: Duration,
)
| 288 | } |
| 289 | |
| 290 | pub async fn poll( |
| 291 | &self, |
| 292 | process_identifier: i64, |
| 293 | wait: Duration, |
| 294 | ) -> Result<Option<Value>, String> { |
| 295 | let agent = self |
| 296 | .inner |
| 297 | .lock() |
| 298 | .await |
| 299 | .agents |
| 300 | .get(&process_identifier) |
| 301 | .cloned() |
| 302 | .ok_or_else(|| { |
| 303 | format!("NativeScript inspector for process {process_identifier} is not connected.") |
| 304 | })?; |
| 305 | agent.poll(wait).await |
| 306 | } |
| 307 | |
| 308 | pub async fn complete_response( |
| 309 | &self, |
no test coverage detected