Paul Woitaschek
09/13/2018, 7:13 PMenleur
09/14/2018, 5:17 AMenleur
09/14/2018, 5:18 AMwithoutclass
09/14/2018, 2:56 PMbj0
09/14/2018, 4:20 PMsuspend
function in a variable?bj0
09/14/2018, 4:42 PMwithoutclass
09/14/2018, 4:43 PMsuspend
fun from a non suspend
fun?withoutclass
09/14/2018, 4:44 PMrunBlocking
, then pass that.bj0
09/14/2018, 4:50 PMwithoutclass
09/14/2018, 4:51 PMwithoutclass
09/14/2018, 4:52 PMbj0
09/14/2018, 4:52 PMbj0
09/14/2018, 4:52 PMbj0
09/14/2018, 4:53 PMuli
09/16/2018, 8:51 AMPavel.AZ
09/17/2018, 12:42 PMMartin Devillers
09/17/2018, 1:05 PMDispatchers.Default
is the default dispatcher, which is definitely not the same as Dispatchers.Main
ashdavies
09/17/2018, 1:22 PMPavel.AZ
09/17/2018, 1:47 PMCoroutineScope
use in ViewModel
https://gist.github.com/pavelaizen/249db7c366c9ad09dc66c2ee69512e25Albert
09/17/2018, 6:38 PMaaverin
09/18/2018, 8:44 PMsuspend
function?bj0
09/18/2018, 9:06 PMcoroutineContext
?deviant
09/19/2018, 6:10 PMhttps://i.imgur.com/rH3BATy.png▾
jar
lib with shadowJar plugin. the lib contains coroutines lib as dependency:
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
I build it with shadowJar task:
shadowJar {
baseName = 'deps'
classifier = null
version = null
destinationDir = file("$rootDir/src")
}
When i try to use this lib in my project it can't resolve the `jar`'s classes. The code is red. But it compiles fine!
The bug is gone when i switched to coroutines 0.22.1 and rebuilt the jar
deviant
09/19/2018, 6:10 PMdeviant
09/19/2018, 6:11 PMbj0
09/19/2018, 10:13 PMbj0
09/19/2018, 10:43 PMDico
09/19/2018, 11:27 PMcoroutineScope
can only be used from coroutines.bj0
09/19/2018, 11:39 PMwithoutclass
09/20/2018, 1:11 AM