lazy.rb 0.9.5
You know how IO has transparent futures? Wouldn’t it be cool if we had those in Ruby?
Okay, done.
The newest release of lazy.rb has support for futures.
The API looks pretty much like the one for promises (in fact it’s built on them). You just wrap your code in future { ... }, and it runs in a background thread until you try to use its result.
There’s also a ruby-talk announcement, which might have a better description than the web page, actually.