Do we have a place to quickly dry test coroutines/...
# android
r
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
coroutines work on Kotlin Playground
r
@ephemient can you please paste a small working example? I tried using
launch{ }
coroutine builder, but failed with Unresolved Reference Error.
e
Copy code
import kotlinx.coroutines.*

suspend fun main() = coroutineScope<Unit> {
    launch {
        println("Hello, world!!!")
    }
}
r
Damn 🤦 Was missing the imports for
launch{}
¯\_(ツ)_/¯
j
Ahh I do that stuff all the time, forget little minor details ... sign of a genius! lol