/// Combinator that returns a future that will gather some statistics using
/// [TimedFuture] and pass them for inspection to the provided callback.
Combinator that returns a future that will gather some statistics using
[TimedFuture] and pass them for inspection to the provided callback.
Combinator that returns a future that will gather some statistics using [ TimedFuture ] and pass them for inspection to the provided callback .
fn timed<C, R>(self, callback: C) -> BoxFuture<Self::Item, Self::Error>
    where
        C: FnOnce(FutureStats, Result<&Self::Item, &Self::Error>) -> R + Send + 'static,
        R: IntoFuture<Item = (), Error = ()> + 'static,
        R::Future: Send + 'static,
        Self::Item: Send,
        Self::Error: Send,
    {
        time_future(self, callback).boxify()
    }
fn timed < C , R > ( self , callback : C ) -> BoxFuture < Self :: Item , Self :: Error > where C : FnOnce ( FutureStats , Result < & Self :: Item , & Self :: Error > ) -> R + Send + ' static , R : IntoFuture < Item = ( ) , Error = ( ) > + ' static , R :: Future : Send + ' static , Self :: Item : Send , Self :: Error : Send , { time_future ( self , callback ) . boxify ( ) }
Combinator that returns a future that will gather some statistics using
[TimedFuture] and pass them for inspection to the provided callback.
Combinator that returns a future that will gather some statistics using [ TimedFuture ] and pass them for inspection to the provided callback .
self
callback
C