diff --git a/futurist/periodics.py b/futurist/periodics.py index a629b67..eb1b4de 100644 --- a/futurist/periodics.py +++ b/futurist/periodics.py @@ -46,9 +46,21 @@ IMMEDIATE = 'immediate' class Watcher(object): """A **read-only** object representing a periodics callbacks activities.""" + _REPR_MSG_TPL = ("") + def __init__(self, metrics): self._metrics = metrics + def __repr__(self): + return self._REPR_MSG_TPL % dict(ident=id(self), **self._metrics) + @property def runs(self): """How many times the periodic callback has been ran."""