lupajz
03/31/2017, 9:50 AMval trivias = List(10) { async(CommonPool) { downloadString(it) } }
counter.text = trivias.joinToString { it.await() } // Suspension function can be called only within coroutine context
counter.text = trivias.map { it.await() }.joinToString { it }
Can anybody explain me what’s wrong with the first line ?