~/talk

Networking the Kotlin way: Retrofit + Coroutines

Talkat droidcon Italy 2019 · 2019-04-04..04-05· [kotlin, android]
links:none on file
slides:none on file

Claims that Retrofit pairs with Kotlin coroutines to replace RxJava for typical single-request networking, shows Retrofit supporting suspend functions (Retrofit 2.5-1 snapshot), demonstrates using Dispatchers.IO and Dispatchers.Main for thread control, and explains migration patterns: replace Single/Completable with Deferred or suspend, use launch/async/runBlocking builders, and wrap parallel calls in coroutineScope with async/await to get structured cancellation. Gives testing guidance using kotlinx-coroutines-test to override the Main dispatcher, touts thousands-of-coroutines lightweightness, and shows debugging and ViewModel scope auto-cancel behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Networking on Android
  3. 2:33Primitives
  4. 2:50Networking primitives
  5. 3:36Learning curve
  6. 6:18Retrofit interface
  7. 7:52Retrofit API
  8. 9:48Curtain Builders
  9. 11:42Curtain Dispatcher
  10. 12:12Dispatchers IO
  11. 14:23With Context
  12. 15:51What is Context
  13. 17:14Cancellation
  14. 17:51Job
  15. 18:53ViewModel Example
  16. 19:33ViewModel Scope
  17. 21:40ViewModel Scope Testing
  18. 22:59Parallel Decomposition
  19. 24:16CoreTeamBuilder
  20. 25:30courtingscope
  21. 25:52curtainscope
  22. 26:38debugging
  23. 27:53Kotlin vs Java
  24. 29:48Should you use Kotlin
  25. 31:09Outro
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.