Answers for "unresolved reference launch kotlin"

0

Unresolved reference: kotlinx

plugins {    id'com.android.application'    id'kotlin-android'    id'kotlin-android-extensions'}
Posted by: Guest on March-09-2021
0

unresolved reference launch kotlin

fun main() { 
    GlobalScope.launch { // launch a new coroutine in background and continue
        delay(1000L)
        println("World!")
    }
    println("Hello,") // main thread continues here immediately
    runBlocking {     // but this expression blocks the main thread
        delay(2000L)  // ... while we delay for 2 seconds to keep JVM alive
    } 
}
Posted by: Guest on March-24-2021

Code answers related to "unresolved reference launch kotlin"

Browse Popular Code Answers by Language