lib/async/redis/client.rb in async-redis-0.4.3 vs lib/async/redis/client.rb in async-redis-0.5.0

- old
+ new

@@ -88,22 +88,10 @@ ensure context.close end end - def multi(&block) - context = Context::Multi.new(@pool) - - return context unless block_given? - - begin - yield context - ensure - context.close - end - end - def transaction(&block) context = Context::Transaction.new(@pool) return context unless block_given? @@ -111,9 +99,10 @@ yield context ensure context.close end end + alias multi transaction def pipeline(&block) context = Context::Pipeline.new(@pool) return context unless block_given?