123456789_123456789_123456789_123456789_123456789_

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

FutureNotReady

Class Method Summary

Future - Inherited

Instance Method Summary

Constructor Details

.new(futures) ⇒ MultiFuture

[ GitHub ]

  
# 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