MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / wait_for_response

Function wait_for_response

src/storage.rs:605–613  ·  view source on GitHub ↗
(op_id: i32)

Source from the content-addressed store, hash-verified

603
604#[cfg(target_arch = "wasm32")]
605async fn wait_for_response(op_id: i32) -> Result<JsObject, String> {
606 loop {
607 let result = unsafe { ply_storage_try_recv(op_id) };
608 if !result.is_nil() {
609 return Ok(result);
610 }
611 next_frame().await;
612 }
613}
614
615#[cfg(target_arch = "wasm32")]
616extern "C" {

Callers 5

newMethod · 0.85
save_bytesMethod · 0.85
load_bytesMethod · 0.85
removeMethod · 0.85
exportMethod · 0.85

Calls 1

ply_storage_try_recvFunction · 0.85

Tested by

no test coverage detected