Module: Mysql2::EM::Client::Watcher
- Defined in:
- lib/em-synchrony/mysql2.rb
Instance Method Summary collapse
Instance Method Details
#notify_readable ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/em-synchrony/mysql2.rb', line 11 def notify_readable detach begin result = @client.async_result rescue Exception => e @deferable.fail(e) else @deferable.succeed(result) end end |