Module: FiberedMysql2::FiberedMysql2Adapter_4_2

Defined in:
lib/active_record/connection_adapters/fibered_mysql2_adapter.rb

Instance Method Summary collapse

Instance Method Details

#leaseObject



10
11
12
13
14
15
16
# File 'lib/active_record/connection_adapters/fibered_mysql2_adapter.rb', line 10

def lease
  synchronize do
    unless in_use?
      @owner = Fiber.current
    end
  end
end