Function bevy::utils::futures::now_or_never

pub fn now_or_never<F>(future: F) -> Option<<F as Future>::Output>where
    F: Future,
Expand description

Consumes the 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.