~/talk

Effective Coroutines

Talkat 360|AnDev 2019 · 2019-07-18..07-19· [kotlin]
links:none on file
slides:none on file

Claims that suspend is not magic and that coroutines require mastering scopes and builders drive a concrete puzzle: a monitor-and-scan example initially prints "done" immediately then later "starting" and never "scanning." Fixes use coroutine builders, await/async (or awaitAll), channels and a conflatedBroadcastChannel to communicate progress so output becomes "starting scanning done." Scopes act as scope = job + dispatcher, viewModelScope and kotlinx-coroutines-test are recommended tools.

AI-written summary · about

  1. 0:00Introduction
  2. 0:56Motivated by
  3. 1:50Geometry
  4. 2:44Puzzler
  5. 6:09Key Concepts
  6. 6:39Suspended Functions
  7. 8:07The old way
  8. 10:11Life
  9. 11:04Job
  10. 11:30Scope
  11. 14:51Cleanup
  12. 15:05Structure Concurrency
  13. 16:10Cancellation
  14. 16:31Summary
  15. 21:53Channel Example
  16. 26:15Flows
  17. 30:19Official view
  18. 31:24Questions
~/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.