(&self, process_identifier: i64, agent: InspectorAgentHandle)
| 333 | } |
| 334 | |
| 335 | async fn register(&self, process_identifier: i64, agent: InspectorAgentHandle) { |
| 336 | debug!( |
| 337 | "Registered NativeScript inspector for process {}.", |
| 338 | process_identifier |
| 339 | ); |
| 340 | let connection_id = agent.connection_id; |
| 341 | let info = agent.info.clone(); |
| 342 | self.inner |
| 343 | .lock() |
| 344 | .await |
| 345 | .agents |
| 346 | .insert(process_identifier, agent); |
| 347 | if !info.is_null() { |
| 348 | self.publish_inspector(process_identifier, &info).await; |
| 349 | self.start_registry_heartbeat(process_identifier, connection_id); |
| 350 | } |
| 351 | } |
| 352 | |
| 353 | async fn unregister(&self, process_identifier: i64, connection_id: u64) { |
| 354 | let mut inner = self.inner.lock().await; |
no test coverage detected