run

Function run 

Source
pub fn run<T>(future: impl Future<Output = T>) -> T
Expand description

Run the specified future to completion, blocking until it yields a result.

This will alternate between polling the specified future and polling any Pollables registered using push_waker or push_waker_and_get_token using wasi::io/poll/poll-list. It will panic if the future returns Poll::Pending without having registered at least one Pollable.