MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / query_with_timeout

Method query_with_timeout

packages/server/src/inspector.rs:270–288  ·  view source on GitHub ↗
(
        &self,
        process_identifier: i64,
        method: &str,
        params: Value,
        wait: Duration,
    )

Source from the content-addressed store, hash-verified

268 }
269
270 pub async fn query_with_timeout(
271 &self,
272 process_identifier: i64,
273 method: &str,
274 params: Value,
275 wait: Duration,
276 ) -> Result<Value, String> {
277 let agent = self
278 .inner
279 .lock()
280 .await
281 .agents
282 .get(&process_identifier)
283 .cloned()
284 .ok_or_else(|| {
285 format!("NativeScript inspector for process {process_identifier} is not connected.")
286 })?;
287 agent.query(method, params, wait).await
288 }
289
290 pub async fn poll(
291 &self,

Callers 2

inspector_direct_requestFunction · 0.80
query_inspector_sessionFunction · 0.80

Calls 2

queryMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected