I think this is a better version: ```tasks.withTyp...
# coroutines
d
I think this is a better version:
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
    kotlinOptions {
        freeCompilerArgs += [
                '-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi',
                '-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi'
        ]
    }
}
The
+=
adds more options (just in case you already have some elsewhere), and
Experimental
is for things like
Dispatchers.Unconfined
.
👍 1