Trait TryJoinIterExt

Source
pub trait TryJoinIterExt<T, F>: Iterator
where F: Future<Output = Result<T>>,
{ // Required method fn try_join(self) -> TryJoin<F>; }

Required Methods§

Source

fn try_join(self) -> TryJoin<F>

Returns a future that resolves to a vector of the outputs of the futures in the iterator, or to an error if one of the futures fail.

Unlike Futures::future::try_join_all, this returns the Error that occurs first in the list of futures, not the first to fail in time.

Implementors§

Source§

impl<T, F, IF, It> TryJoinIterExt<T, F> for It
where F: Future<Output = Result<T>>, IF: IntoFuture<Output = Result<T>, IntoFuture = F>, It: Iterator<Item = IF>,