Esempio n. 1
0
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)
Esempio n. 2
0
 def request_plugin_list(self):
     progress = ProgressNotifier("Gulp: Working")
     thread = PluginRegistryCall()
     thread.start()
     self.handle_thread(thread, progress)
Esempio n. 3
0
 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()
Esempio n. 4
0
 def request_plugin_list(self):
     progress = ProgressNotifier("%s: Working" % Settings.PACKAGE_NAME)
     thread = PluginRegistryCall()
     thread.start()
     self.handle_thread(thread, progress)
Esempio n. 5
0
 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)