dimsuz
class MyClass : CoroutineScope by MainScope() { fun execute() = launch { delay(1000) println("finished") } } fun main() = runBlocking { val clazz = MyClass() clazz.execute() }
kotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
main()
A modern programming language that makes developers happier.