'Unschedules all watches and detaches all associated event
handlers.'

def unschedule_all(self):

    with self._lock:
        self._handlers.clear()
        self._clear_emitters()
        self._watches.clear()
