Class: ParallelWorkforce::RedisConnector::SidekiqRedisPool

Inherits:
Object
  • Object
show all
Defined in:
lib/parallel_workforce/redis_connector/sidekiq_redis_pool.rb

Instance Method Summary collapse

Instance Method Details

#with(&block) ⇒ Object



4
5
6
7
8
# File 'lib/parallel_workforce/redis_connector/sidekiq_redis_pool.rb', line 4

def with(&block)
  Sidekiq.redis_pool.with do |redis|
    yield(redis)
  end
end