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

Method poll

packages/server/src/inspector.rs:290–306  ·  view source on GitHub ↗
(
        &self,
        process_identifier: i64,
        wait: Duration,
    )

Source from the content-addressed store, hash-verified

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,

Calls 1

getMethod · 0.65

Tested by

no test coverage detected