Class: Redis::MultiFuture
Constant Summary
Constants inherited from Future
Instance Method Summary collapse
- #_set(replies) ⇒ Object
-
#initialize(futures) ⇒ MultiFuture
constructor
A new instance of MultiFuture.
Methods inherited from Future
#class, #inspect, #is_a?, #value
Constructor Details
#initialize(futures) ⇒ MultiFuture
Returns a new instance of MultiFuture.
112 113 114 115 116 |
# File 'lib/redis/pipeline.rb', line 112 def initialize(futures) @futures = futures @command = [:exec] @object = FutureNotReady end |
Instance Method Details
#_set(replies) ⇒ Object
118 119 120 121 122 123 124 125 |
# File 'lib/redis/pipeline.rb', line 118 def _set(replies) if replies @futures.each_with_index do |future, index| future._set(replies[index]) end end @object = replies end |