Open
Description
Hi,
I think in case of (sequential) collections this code
for (x ← xs) {
... async ...
}
could be rewritten into
val it = xs.iterator
while (it.hasNext) {
val x = it.next()
... async ...
}
thus relaxing the restriction regarding async
inside closures. It only saves a few lines, but looks more idiomatic. What do you think?