In Files

Mysql2::EM::Client::Watcher

Public Class Methods

new(client, deferable) click to toggle source
# File lib/mysql2/em.rb, line 9
def initialize(client, deferable)
  @client = client
  @deferable = deferable
end

Public Instance Methods

notify_readable() click to toggle source
# File lib/mysql2/em.rb, line 14
def notify_readable
  detach
  begin
    @deferable.succeed(@client.async_result)
  rescue Exception => e
    @deferable.fail(e)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.