def cancellable(func):
    def _ret(self, action):
        if action >= 0:
            func(self, action)
        elif action < 0 and self.caller == "manager":
            sublime.set_timeout(self.run, 10)
    return _ret
dataset/ETHPy150Open randy3k/Project-Manager/pm.py/cancellable/original