https://kotlinlang.org logo
Title
o

Ovsyannikov Alexey

11/02/2018, 1:25 AM
Hello What can be changed with
BroadcastChannel
? Now it is marked as
experimental
g

gildor

11/02/2018, 1:48 AM
Correct, all Channels API is experimental
You can enable it explicitly for whole project
o

Ovsyannikov Alexey

11/02/2018, 6:04 AM
How can I do this except
@Experimental...
annotation?
g

gildor

11/02/2018, 6:09 AM
Something like this:
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
        kotlinOptions {
            freeCompilerArgs += [
                    '-Xexperimental=your.Annotation',
            ]
        }
    }
your.Annotation is annotation which you want to enable
in this case it will be
kotlinx.coroutines.ExperimentalCoroutinesApi
o

Ovsyannikov Alexey

11/02/2018, 6:37 AM
I see, thank you