~/talk

And .then() what? Promise programming patterns

Talkat Falsy Values 2015 · 2015-10-12..10-13· [javascript]
slides:none on file

Financial Times’ mobile app migrates from callbacks to Promises, reporting simpler, more reliable, faster code via better parallelization. Implements a cache that stores the in-flight promise to avoid the thundering herd, a serial queue by keeping a tail promise and using Promise.resolve to start chains, and reusable “ready” promises for init steps so late listeners never miss events. Uses Promise.all for parallel map calls, reduce for sequential processing, and adds a nonstandard finally helper; async/await syntax is already supported in Edge.

AI-written summary · about

  1. 0:00Intro
  2. 0:50Promises
  3. 3:25Thundering Herd
  4. 5:50Serial Queue
  5. 10:45Promise Function
  6. 14:35Events
  7. 18:45One at a time
  8. 21:55Future of Promises
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.