Esempio n. 1
0
 def _run(self):
     self.thread = StoppableThread(target=self._train, args=(), daemon=True)
     self.thread.start()
Esempio n. 2
0
def online_training_thread(character: str, food_key: Key, mana_burn_key: Key):
    return StoppableThread(target=online_training,
                           args=(character, food_key, mana_burn_key),
                           daemon=False)
Esempio n. 3
0
 def _run(self):
     if not self._connect():
         return
     self.thread = StoppableThread(target=self._burn, args=(), daemon=True)
     self.thread.start()
     WindowsInhibitor.inhibit()
Esempio n. 4
0
 def _run(self):
     self.thread = StoppableThread(target=self.executor,
                                   args=(),
                                   daemon=True)
     self.thread.start()