class Object

Public Class Methods

new(config) click to toggle source
Calls superclass method
# File lib/polyphony/adapters/mysql2.rb, line 8
def initialize(config)
  config[:async] = true
  super
  @io = ::IO.for_fd(socket)
end

Public Instance Methods

query(sql, **options) click to toggle source
Calls superclass method
# File lib/polyphony/adapters/mysql2.rb, line 14
def query(sql, **options)
  super
  Polyphony.backend_wait_io(@io, false)
  async_result
end
read(path) click to toggle source
# File lib/polyphony/adapters/fs.rb, line 16
def read(path)
  ThreadPool.process { orig_read(path) }
end
stat(path) click to toggle source
# File lib/polyphony/adapters/fs.rb, line 9
def stat(path)
  ThreadPool.process { orig_stat(path) }
end