Trait futures_concurrency::future::TryJoin
source · pub trait TryJoin {
type Output;
type Error;
type Future: Future<Output = Result<Self::Output, Self::Error>>;
fn try_join(self) -> Self::Future;
}
Expand description
Wait for all futures to complete successfully, or abort early on error.
In the case a future errors, all other futures will be cancelled. If futures have been completed, their results will be discarded.
If you want to keep partial data in the case of failure, see the merge
operation.