igrigorik/em-synchrony — Issue #102: em-hiredis driver is, seemingly, not making use of EM::Synchrony.sync
Author: blt
Created: 2012-01-05 06:22:06+00:00
State: open

In so far as I understand em-synchrony's em-hiredis.rb the following code should output two 'true's.

```ruby
require 'rubygems'
require 'em-synchrony'
require 'em-synchrony/em-hiredis'

EventMachine.synchrony do
redis = EventMachine::Hiredis::Client.connect
puts redis.class.name

redis.set('a', 'foo')
puts redis.get('a') == 'foo' ## should be 'true' , is DefaultDeferrable
puts redis.get('c').nil? ## should be 'true' , is DefaultDeferrable

EM.stop
end
```

Instead, it's two 'falses'. If I manually insert some `EM::Synchrony.sync`s I get the expected result. Surely this is a fault of my own, no?

I'm on:

* em-synchrony-1.0.0
* eventmachine-0.12.10
* em-hiredis-0.1.0
* ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]