~/talk

Writing Sound Asynchronous Code with Coroutines

Talkat ReactiveConf 2016 · on Friday, 2016-10-28· [javascript]
slides:none on file

Shows why dangling promises silently lose errors and how a generator-based coroutine library gives concrete fixes: explicit parent-child coroutines where parents handle children’s errors and cannot end until children do, plus immediate termination of a subtree. Demonstrates Express transaction middleware that commits or rolls back only after spawned coroutines finish, a searchable context map for request-scoped data, a small CSP-like channel API with nonblocking pushes and blocking yields, and integration with Promises. Library is alpha on GitHub/NPM.

AI-written summary · about

  1. 0:00Start
  2. 0:15Recap of How We Wrote a Synchronous Code in Javascript in the Past
  3. 1:03Writing Code with Callbacks
  4. 14:33Async Await
  5. 16:38Coroutines as Express Request Handlers
  6. 18:32Explicit Parent-Child Relationship between Coroutines
  7. 27:39Difference between Yield and Await
  8. 32:13Is It Possible To Visualize the Data Flow
  9. 33:09Observables Instead of Promises
  10. 33:54Attaching Listeners on Streams
~/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.