thevery
07/23/2018, 1:11 AMfun search(query: String, model: SearchModel, view: SearchView): Job {
val cancellableJob = launch(CommonPool) {
val data = model.search(query) // (1)
withContext(UI) {
view.showData(data) (2)
}
}
return cancellableJob
}
russhwolf
07/23/2018, 3:49 AMthevery
07/23/2018, 7:35 AMmsink
07/23/2018, 9:51 AMmsink
07/23/2018, 9:55 AMkonan.worker.AtomicReference
thevery
07/23/2018, 10:29 AMAtomicReference
differs from JVM (at least fqdn), but doesn't work properly for non-objects (but I'm still researching)msink
07/23/2018, 10:53 AMAtomicInt
and AtomicLong
thevery
07/23/2018, 12:17 PMthevery
07/23/2018, 12:32 PMinitRuntimeIfNeeded()
again 😞msink
07/24/2018, 12:58 PMRCU
in linux kernel
https://m.habr.com/post/206984/