This is not production code (at the moment). It is a conceptual demo. Slides for the accompanying presentation are here.
- For this implementation, 'resolve' chooses between 'fulfillment' (success) and 'rejection' (failure)
Clone this repo.
Run rake install
Then in irb, you should be able to require 'promise'
See /demo
- promise.rb, Promises/A(+) implementation
- Fork it ( https://github.com/[my-github-username]/promise/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request