Tamas
07/15/2020, 5:38 PMproduce
I have imported it from import kotlinx.coroutines.channels.produce
but the ide still displays it red, and says create function
on alt-enter. my dependencies are
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-jdk9:1.3.7'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-javafx:1.3.7'
octylFractal
07/15/2020, 5:39 PMkotlinx-coroutines-jdk9
a thing? I thought there was only jdk8
Tamas
07/15/2020, 5:40 PMoctylFractal
07/15/2020, 5:41 PMkotlinx-coroutines-core
, I don't know if the other ones declare it as api
or implementation
, the latter would mean core
wouldn't appear on your classpathTamas
07/15/2020, 5:42 PMaraqnid
07/15/2020, 5:45 PMoctylFractal
07/15/2020, 5:46 PMTamas
07/15/2020, 5:51 PMfun addFile(file: File): ReceiveChannel<List<String>> = produce {
}
octylFractal
07/15/2020, 5:52 PMCoroutineScope
to call it onTamas
07/15/2020, 5:54 PMoctylFractal
07/15/2020, 5:56 PMTamas
07/15/2020, 5:57 PMoctylFractal
07/15/2020, 5:57 PMTamas
07/15/2020, 6:04 PM