pub fn make<G>(
val: G::Input,
getter: G,
) -> Pin<Box<impl Future<Output = G::Output>>>where
G: GetFut,Expand description
Encapsulate a borrowed-future along with it’s owner.
This function takes the owner by value and a functor-like GetFut, which when invoked will
return a borrowed-future.’
The future returned by this function takes ownership of the owner, and will .await the
borrowed-future when polled.
Callers may wish to use crate::get to quickly construct this functor for cases which don’t
require capturing, but any type which implements GetFut will work.