nerses
01/31/2018, 1:23 PMmap.forEach { k, d -> d.await() }
forEach is the default method on java.util.Map interface and that fails compilation with “Error:(47, 55) Kotlin: Suspension functions can be called only within coroutine body”
but
map.forEach { (k, d) -> d.await() }
compiles fine.
is it because the latter is an inline function?