[][src]Function yaar::serial::run

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

Run a future, and all the tasks is spawns recursively, using an executor optimized for running single threaded.

As this relies on with_executor_as(), the caller should ensure that this function is not called on multiple threads.