Пример #1
0
	def _moveCallLaterSooner(self, tple):
		"""
		Override L{PosixReactorBase}'s implementation of L{IDelayedCall.reset}
		so that it will immediately reschedule.  Normally
		C{_moveCallLaterSooner} depends on the fact that C{runUntilCurrent} is
		always run before the mainloop goes back to sleep, so this forces it to
		immediately recompute how long the loop needs to stay asleep.
		"""
		result = PosixReactorBase._moveCallLaterSooner(self, tple)
		self._scheduleSimulate()
		return result
Пример #2
0
    def _moveCallLaterSooner(self, tple):
        """
		Override L{PosixReactorBase}'s implementation of L{IDelayedCall.reset}
		so that it will immediately reschedule.  Normally
		C{_moveCallLaterSooner} depends on the fact that C{runUntilCurrent} is
		always run before the mainloop goes back to sleep, so this forces it to
		immediately recompute how long the loop needs to stay asleep.
		"""
        result = PosixReactorBase._moveCallLaterSooner(self, tple)
        self._scheduleSimulate()
        return result