(future: &mut wasmtime_call_future_t)
| 198 | |
| 199 | #[unsafe(no_mangle)] |
| 200 | pub extern "C" fn wasmtime_call_future_poll(future: &mut wasmtime_call_future_t) -> bool { |
| 201 | match future |
| 202 | .underlying |
| 203 | .as_mut() |
| 204 | .poll(&mut Context::from_waker(Waker::noop())) |
| 205 | { |
| 206 | Poll::Ready(()) => true, |
| 207 | Poll::Pending => false, |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | fn handle_call_error( |
| 212 | err: wasmtime::Error, |