Method: TkVariable#wait
- Defined in:
- lib/tk/variable.rb
#wait(on_thread = false, check_root = false) ⇒ Object
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 |
# File 'lib/tk/variable.rb', line 363 def wait(on_thread = false, check_root = false) on_thread &= (Thread.list.size != 1) if on_thread if check_root INTERP._thread_tkwait('variable', @id) else INTERP._thread_vwait(@id) end else if check_root INTERP._invoke_without_enc('tkwait', 'variable', @id) else INTERP._invoke_without_enc('vwait', @id) end end end |