https://kotlinlang.org logo
#coroutines
Title
# coroutines
p

pakoito

05/18/2019, 4:01 PM
Copy code
override fun onStart() {
       super.onStart()

       launch { contentSelectionPresenter.getAvailableContent() }
   }
and whatever is within the launch block will be in a CommonPool thread and can be suspend fun
🧵 2
l

louiscad

05/18/2019, 8:04 PM
CommonPool is long deprecated and now removed from public API. We use
Dispcthers.Default
since coroutines are stable.
p
deprecated 8 months ago
hmmm
12 Views