~/talk

Promises in Ruby

Talkat RubyConf 2014 · 2014-11-17..11-19· [ruby]
slides:none on file

Code shows a small Ruby promises library built to replace brittle top‑down and state‑machine workflows used when automating ad publishing to remote REST services. It returns a handle immediately in pending state, uses promise.start to bootstrap, chains with then, provides Promise.all and any for concurrency, and runs asynchronous work with Thread.new. Promises become fulfilled or rejected once only; tests use rspec; thread‑safety requires extra mutexing; examples include Garfield‑style demos and the implementation is not yet deployed to production.

AI-written summary · about

  1. 0:00Start
  2. 2:51What Are Promises
  3. 7:35What Would the Promise Pattern Look like in Ruby
  4. 27:38Recap
  5. 31:08Bend Method
  6. 34:11Fulfill and Reject
  7. 38:38Sequential Workflow
~/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.