jeggy
fun main() = runBlocking { repeat(50) { launch(<http://Dispatchers.IO|Dispatchers.IO>) { delay(5000L * it) println("Done $it") } } }
spand
Zach Klippenstein (he/him) [MOD]
@Test fun threads() = runBlockingTest { (1..50).map { launch(<http://Dispatchers.IO|Dispatchers.IO>) { delay(5000L * it) println("Done $it") } }.joinAll() }
uli
java.lang.IllegalStateException: This job has not completed yet
tseisel
runBlockingTest
withContext
A modern programming language that makes developers happier.