def async(fn, delay, silent=False): if is_sublime_text_3: if silent: sublime.set_timeout_async(fn, delay) else: progress = ProgressNotifier("%s: Working" % Settings.PACKAGE_NAME) sublime.set_timeout_async(lambda: call(fn, progress), delay) else: set_timeout(fn, delay)
def request_plugin_list(self): progress = ProgressNotifier("Gulp: Working") thread = PluginRegistryCall() thread.start() self.handle_thread(thread, progress)
def async (self, fn, delay): if is_sublime_text_3: progress = ProgressNotifier(self.package_name + ': Working') sublime.set_timeout_async(lambda: self.call(fn, progress), delay) else: fn()
def request_plugin_list(self): progress = ProgressNotifier("%s: Working" % Settings.PACKAGE_NAME) thread = PluginRegistryCall() thread.start() self.handle_thread(thread, progress)
def async (self, fn, delay): progress = ProgressNotifier('Trello: Working') sublime.set_timeout_async(lambda: self.call(fn, progress), delay) sublime.set_timeout_async(lambda: progress.stop(), 5000)