Skip to main content

run

Function run 

Source
pub async fn run<T, F>(f: F) -> Result<T, String>
where T: Send + 'static, F: FnOnce() -> T + Send + 'static,
Expand description

Run f on the trash thread and wait for its answer without blocking the async runtime.