https://kotlinlang.org logo
Title
r

Raj Bopche

02/05/2023, 5:28 PM
Do we have a place to quickly dry test coroutines/flow code, just like Kotlin playground? Spinning up a new project with coroutine dependency every now and then is exhausting.
e

ephemient

02/05/2023, 9:50 PM
coroutines work on Kotlin Playground
r

Raj Bopche

02/07/2023, 3:51 AM
@ephemient can you please paste a small working example? I tried using
launch{ }
coroutine builder, but failed with Unresolved Reference Error.
e

ephemient

02/07/2023, 3:55 AM
import kotlinx.coroutines.*

suspend fun main() = coroutineScope<Unit> {
    launch {
        println("Hello, world!!!")
    }
}
r

Raj Bopche

02/07/2023, 3:56 AM
Damn 🤦 Was missing the imports for
launch{}
¯\_(ツ)_/¯
j

John Matthews

02/17/2023, 3:34 PM
Ahh I do that stuff all the time, forget little minor details ... sign of a genius! lol