In Files

Mysql2::EM::Client::Watcher

Public Class Methods

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

Public Instance Methods

notify_readable() click to toggle source
    # File lib/mysql2/em.rb, line 15
15:         def notify_readable
16:           detach
17:           begin
18:             @deferable.succeed(@client.async_result)
19:           rescue Exception => e
20:             @deferable.fail(e)
21:           end
22:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.