def wait_for_window(on_appear, seconds_to_wait=MAX_WAIT_FOR_WINDOW):
    sublime.set_timeout(lambda: wait_for_window_callback(on_appear, seconds_to_wait), 0)
Wait for window to appear on startup
dataset/ETHPy150Open SublimeHaskell/SublimeHaskell/sublime_haskell_common.py/wait_for_window