Sha256: 0874bb8e4dff412dfdc8a5e3385ebd41d7c0cc67a6613c5a1bad199d01b5049b

Contents?: true

Size: 195 Bytes

Versions: 6

Compression:

Stored size: 195 Bytes

Contents

require_relative "../wire/synchrony"

module Helper
  def around
    rv = nil

    EM.synchrony do
      begin
        rv = yield
      ensure
        EM.stop
      end
    end

    rv
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
redis-4.0.3 test/support/connection/synchrony.rb
redis-4.1.0.beta1 test/support/connection/synchrony.rb
redis-4.0.2 test/support/connection/synchrony.rb
redis-4.0.1 test/support/connection/synchrony.rb
redis-4.0.0 test/support/connection/synchrony.rb
redis-4.0.0.rc1 test/support/connection/synchrony.rb