Asserts that the future `f` is ready and returns its output. This function is intended to be used with `Store::validate_sync_call`. Internals of Wasmtime are generally `async` when they optionally can be, meaning that synchronous entrypoints will invoke this function after invoking the asynchronous internals. The `validate_sync_call` method ensures that during this `async` function call there won
(f: F)
| 464 | /// |
| 465 | /// Panics if `f` is not yet ready. |
| 466 | pub fn assert_ready<F: Future>(f: F) -> F::Output { |
| 467 | one_poll(f).unwrap() |
| 468 | } |
| 469 | |
| 470 | /// Attempts one poll of `f` to see if its output is available. |
| 471 | /// |