Implement Runner#run_until

This commit is contained in:
Thibault Jouan
2015-04-09 00:11:23 +00:00
parent c8f12af987
commit 224ae6be5f
2 changed files with 13 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ module Uh
@manager.connect
@env.log "Connected to X server"
end
def run_until &block
@manager.handle_pending_events until block.call
end
end
end
end