Forum: Ruby PurePromise - Promises/A+ with a twist.

Cbe623408c24e48ea1ac0e086ec08b6b?d=identicon&s=25 Cameron M. (cameron_m)
on 2014-08-18 01:12

I've recently written a promises library in ruby. It implements the
Promises/A+ spec almost exactly, with one difference - A promise
callback must return a promise.

This gives them some nice properties, particularly thenables can be
wrapped in promises. With the current Promises/A+ spec, trying to use an
object that happens to implement a then method as a value for a promise
will essentially break a promise chain, causing potentially hard to
debug problems.

It draws partially from Promise.rb
(, being agnostic about which
reactor library you use.

Here is the github link:

I'd love feedback :)
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.