Function bevy_internal::utils::futures::now_or_never
source · pub fn now_or_never<F>(future: F) -> Option<<F as Future>::Output>where
F: Future,
Expand description
Consumes a future, polls it once, and immediately returns the output
or returns None
if it wasn’t ready yet.
This will cancel the future if it’s not ready.