README.textile in em-promise-1.0.2 vs README.textile in em-promise-1.0.3

- old
+ new

@@ -1,12 +1,18 @@ h1. EM-Promise -A promise/deferred implementation inspired by "AngularJS":http://docs.angularjs.org/api/ng.$q see this documentation for use cases. +!https://secure.travis-ci.org/cotag/em-promise.png! +A promise / deferred implementation for EventMachine inspired by "AngularJS":http://docs.angularjs.org/api/ng.$q / "Kris Kowal's Q.":https://github.com/kriskowal/q + From the perspective of dealing with error handling, deferred and promise apis are to asynchronous programing what try, catch and throw keywords are to synchronous programming. <pre><code class="ruby"> +require 'rubygems' +require 'eventmachine' +require 'em-promise' + def asyncGreet(name) deferred = EM::Defer.new EM::Timer.new(5) do EM.defer do @@ -28,5 +34,10 @@ }) end </code></pre> + + +h2. Start using it now + +@gem install em-promise@