Function stackful

Source
pub async fn stackful<T, F: FnOnce() -> T>(f: F) -> T
Expand description

Turn a synchronous function into a Future.

stackful can be paired with wait to allow async function to be used within a sync function and it can be nested arbitarily deep.