Method: TkTimer#wait
- Defined in:
- lib/tk/timer.rb
#wait(on_thread = true, check_root = false) ⇒ Object
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 |
# File 'lib/tk/timer.rb', line 501 def wait(on_thread = true, check_root = false) unless @running if @return_value.kind_of?(Exception) fail @return_value else return @return_value end end @wait_var.wait(on_thread, check_root) if @return_value.kind_of?(Exception) fail @return_value else @return_value end end |