Function optimistic

Source
pub(crate) async fn optimistic(
    fut: impl Future<Output = Result<()>>,
) -> Result<()>
Expand description

Polls a future once, waits for a wakeup, and then optimistically assumes the future is ready.