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 PMMarko Mitic
07/23/2019, 2:15 PMMarko Mitic
07/23/2019, 2:15 PMMarko Mitic
07/23/2019, 2:18 PMDominaezzz
07/23/2019, 2:19 PMDominaezzz
07/23/2019, 2:20 PMDominaezzz
07/23/2019, 2:20 PMDominaezzz
07/23/2019, 2:21 PMGlobalScope.future.diesieben07
07/23/2019, 2:21 PMfuture, etc. are fordiesieben07
07/23/2019, 2:21 PMDominaezzz
07/23/2019, 2:22 PMdiesieben07
07/23/2019, 2:23 PMsuspend fun doStuff() {
}
fun doStuffJava() = GlobalScope.future { doStuff() }diesieben07
07/23/2019, 2:23 PMMarko 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 PMdiesieben07
07/23/2019, 2:25 PMdiesieben07
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 PMdiesieben07
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 PMjw
07/23/2019, 2:31 PMjw
07/23/2019, 2:31 PMMarko Mitic
07/23/2019, 2:34 PM