futures::join!
works but I wanted a vector because I don't know a priori how many futures I need. I've tried Box::pin
and Box::new
but both give the same opaque type error. Probably I'm doing something wrong?
let futures = vec![
Box::pin(get_blobs_from_data(pool, &blobs)),
Box::pin(get_blobs_from_table(pool, &blobs, "TestTable")),
];