human
I wrote the below code

    def run():
        if view.is_loading():
            sublime.set_timeout(run, 10)
        else:
            sublime.set_timeout(func, 10)
    run()

What's a good function header?
assistant
#Here's a good function header.

def run_after_loading(view, func):