Function timeout_future

Source
pub fn timeout_future(duration: Duration) -> impl Future