Method: DBus::Connection#wait_for_message
- Defined in:
- lib/dbus/bus.rb
#wait_for_message ⇒ Object
Wait for a message to arrive. Return it once it is available.
443 444 445 446 447 448 449 450 451 452 453 |
# File 'lib/dbus/bus.rb', line 443 def ret = while ret == nil r, d, d = IO.select([@socket]) if r and r[0] == @socket update_buffer ret = end end ret end |