pub async fn both<E>(
a: impl Future<Output = Result<(), E>>,
b: impl Future<Output = Result<(), E>>,
) -> Result<(), E>Expand description
Run two fallible futures concurrently, returning when both complete successfully or when either fails.