This seems very strange to me but recently I got the following error:
error[E0277]: the trait bound `futures::Collect<std::vec::Vec<impl futures::Future>>: std::future::Future` is not satisfied
which comes from a code that roughly looks like this:
#[tokio::main]
pub async fn main() -> Result<(), ()> {
let r: Vec<Vec<Futures>> = fetch_smth();
for ri in r.into_iter() {
let result = ::futures::future::join_all(ri).await?;
println!("{:#?}", result);
sleep(Duration::from_millis(900));
}
Ok(())
}
What is the right way to actually absorb the future::Collect
if not as a future?