def CallRepeatingWXSafe( self, window, initial_delay, period, func, *args, **kwargs ): call = HydrusData.Call( func, *args, **kwargs ) job = ClientThreading.WXAwareRepeatingJob( self, self._job_scheduler, window, initial_delay, period, call ) self._job_scheduler.AddJob( job ) return job
def CallLater( self, initial_delay, func, *args, **kwargs ): call = HydrusData.Call( func, *args, **kwargs ) job = HydrusThreading.SchedulableJob( self, self._job_scheduler, initial_delay, call ) self._job_scheduler.AddJob( job ) return job
def CallRepeating( self, initial_delay, period, func, *args, **kwargs ): call = HydrusData.Call( func, *args, **kwargs ) job = HydrusThreading.RepeatingJob( self, self._job_scheduler, initial_delay, period, call ) self._job_scheduler.AddJob( job ) return job
def CallLaterWXSafe( self, window, delay, func, *args, **kwargs ): call = HydrusData.Call( func, *args, **kwargs ) job = ClientThreading.WXAwareJob( self, self._job_scheduler, window, call, initial_delay = delay ) self._job_scheduler.AddJob( job ) return job