1 2 3 4 5 6 7 8 9 10
use std::future::Future; // Just a helper function to ensure the futures we're returning all have the // right implementations. pub(crate) fn assert_future<T, F>(future: F) -> F where F: Future<Output = T>, { future }