Open
Description
def foo[T](rs: IterableOnce[Future[T]]): Future[T] = Future.sequence(rs)
Cannot construct a collection of type To with elements of type T based on a collection of type collection.compat.IterableOnce[scala.concurrent.Future[T]].
[error] Future.sequence(resources)
[error] ^
Workaround:
def foo[T](rs: IterableOnce[Future[T]]): Future[T] = Future.sequence(rs.iterator)