Class: Redis::MultiFuture
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Future
|
|
Instance Chain:
self,
Future
|
|
Inherits: |
Redis::Future
|
Defined in: | lib/redis/pipeline.rb |
Constant Summary
Future
- Inherited
Class Method Summary
Instance Method Summary
Constructor Details
.new(futures) ⇒ MultiFuture
# File 'lib/redis/pipeline.rb', line 114
def initialize(futures) @futures = futures @command = [:exec] @object = FutureNotReady end
Instance Method Details
#_set(replies)
[ GitHub ]# File 'lib/redis/pipeline.rb', line 120
def _set(replies) @object = if replies @futures.map.with_index do |future, index| future._set(replies[index]) future.value end else replies end end