def when_file_opened(window, file_path, view_settings, callback, result_queue):

    view = window.active_view()
    if view and view.file_name() == file_path:
        view.settings().set('golang', view_settings)
        callback(view, result_queue)
        return
    # If the view was not ready, retry a short while later
    sublime.set_timeout(lambda: when_file_opened(window, file_path, view_settings, callback, result_queue), 50)
A callable has returned
dataset/ETHPy150Open golang/sublime-build/dev/tests.py/when_file_opened--crossover with--dataset/ETHPy150Open pybee/bugjar/bugjar/view.py/MainWindow.on_return