now_or_never

Function now_or_never 

Source
fn now_or_never<T>(f: impl Future<Output = T>) -> T
Expand description

Either return the result of a future now, or panic.