Marko Mitic
07/23/2019, 2:02 PMsuspend fun getAThingThatMayTakeTime() : T
?
fun getAThing(): Future<T>
?jw
07/23/2019, 2:02 PMDominaezzz
07/23/2019, 2:04 PMfun getAThing(cont: Continuation<T>)
😛Marko Mitic
07/23/2019, 2:13 PMDominaezzz
07/23/2019, 2:19 PMGlobalScope.future
.diesieben07
07/23/2019, 2:21 PMfuture
, etc. are forDominaezzz
07/23/2019, 2:22 PMdiesieben07
07/23/2019, 2:23 PMsuspend fun doStuff() {
}
fun doStuffJava() = GlobalScope.future { doStuff() }
Marko Mitic
07/23/2019, 2:24 PMdiesieben07
07/23/2019, 2:24 PMfuture
(and other helpers) are the way to go thenMarko Mitic
07/23/2019, 2:24 PMGlobalScope.future
, what dependency do I need for that?diesieben07
07/23/2019, 2:25 PMDominaezzz
07/23/2019, 2:26 PMdiesieben07
07/23/2019, 2:26 PMMarko Mitic
07/23/2019, 2:27 PMkotlinx-coroutines-jdk8
, I'll try implementing something myselfdiesieben07
07/23/2019, 2:27 PMDominaezzz
07/23/2019, 2:28 PMdiesieben07
07/23/2019, 2:28 PMDominaezzz
07/23/2019, 2:28 PMjw
07/23/2019, 2:30 PMMarko Mitic
07/23/2019, 2:34 PM