(op_id: i32)
| 603 | |
| 604 | #[cfg(target_arch = "wasm32")] |
| 605 | async 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")] |
| 616 | extern "C" { |
no test coverage detected