The mysqlplus library is a [slightly updated] fork of the Mysql class, with asynchronous capability added See www.kitebird.com/articles/ruby-mysql.html for details, as well as the test directory within the gem
# File lib/mysqlplus.rb, line 11 def ruby_async_query(sql, timeout = nil) # known to deadlock TODO send_query(sql) select [ (@sockets ||= {})[socket] ||= IO.new(socket) ], nil, nil, nil get_result end