pub trait FutureFactory<E> {
    type Future: TryFuture<Error = RetryPolicy<E>>;

    fn spawn(&mut self) -> Self::Future;
}
Expand description

Used in RetryFuture to spawn a new future in case it did not resolve to Ok(_)

If a future fails, then it’s internal state is undefined thats why we need to create a new future.

Required Associated Types

Required Methods

Implementors