~/talk

Native Concurrency and Coroutines

Talkat droidcon NYC 2019 · 2019-08-26..08-27· [android, concurrency]
slides:none on file

PlanGrid's Kotlin Multiplatform sync library runs Kotlin/Native coroutines across threads by embedding runBlocking inside a native worker pool (five workers in the demo) and exposing two APIs: execute to run frozen coroutine blocks on background workers and performAndWait which suspends, ships work to a worker, and resumes via an atomicRef holding a Result plus a stableRef to the continuation; uses kotlinx.serialization and SQLDelight, relies on freeze/ensureNeverFrozen/atomic primitives, and works around the missing multi-threaded coroutine support (issue 416).

AI-written summary · about

  1. 0:00Introduction to talk
  2. 2:59Plan Grid app overview
  3. 7:08Sync system challenges
  4. 10:38Kotlin Native concurrency rules
  5. 19:12Implementing coroutine worker
  6. 24:52Coroutine worker pool
  7. 28:08Perform and wait explained
  8. 35:13Library capabilities and summary
  9. 36:57Q&A and resources
~/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.