~/talk

Exploring Coroutines in Kotlin

Talkat KotlinConf 2018 · 2018-10-03..10-05· [kotlin]
slides:none on file

Kotlin coroutines let code stay sequential while becoming nonblocking: the demo turns blocking URL reads for a localhost stock-price service (port 8085) into concurrent work with launch/async/await, cutting three ~1s serial calls to about one second total. Compiler-desugaring shows a continuation added as second parameter for every suspend function. Examples include sequence/yield continuations and a working stock-price+IP demo; the async version executes correctly and measures the speedup.

AI-written summary · about

  1. 0:00Start
  2. 0:59Parallelism
  3. 3:55Sleep Function
  4. 10:44How Does Co-Routines Actually Work
  5. 19:51Exceptions
  6. 21:32Report the Exception
  7. 22:15Catch Exception
  8. 31:04Sequential Code
  9. 32:41Responsiveness
  10. 42:23Synchronous versus Asynchronous
  11. 43:54Download the Code Examples
~/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.