Promises in Ruby
summary
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
chapters (7)
- 0:00Start
- 2:51What Are Promises
- 7:35What Would the Promise Pattern Look like in Ruby
- 27:38Recap
- 31:08Bend Method
- 34:11Fulfill and Reject
- 38:38Sequential Workflow








