Answers for "new thread android kotlin"

5

kotlin thread

runBlocking {
    val job = launch(Dispatchers.Default) {  
        println("${Thread.currentThread()} has run.") 
    }
}
Posted by: Guest on August-20-2021
0

how to create a thread for callable kotlin

fun callableAsInlineImplementation() =
    executorService.submit(Callable<Int> { 42 }).get()
Posted by: Guest on April-03-2021

Browse Popular Code Answers by Language