Ejemplo n.º 1
0
 def __init__(self, fun, args=None, kwargs=None):
     self.fun = fun
     self.args = args or []
     self.kwargs = kwargs or {}
     self.tref = weakrefproxy(self)
     self._last_run = None
     self.cancelled = False
Ejemplo n.º 2
0
 def __init__(self, fun, args=None, kwargs=None):
     self.fun = fun
     self.args = args or []
     self.kwargs = kwargs or {}
     self.tref = weakrefproxy(self)
     self._last_run = None
     self.canceled = False
Ejemplo n.º 3
0
 def __init__(self, fun, args=None, kwargs=None):
     self.fun = fun
     self.args = args or []
     self.kwargs = kwargs or {}
     # TODO 自己引用自己
     self.tref = weakrefproxy(self)
     self._last_run = None
     # 不太合理,应该使用_canceled
     self.canceled = False