

def unschedule(self, callback):
    '\n        Remove a function from the schedule.\n\n        If the function appears in the schedule more than once, all occurances\n        are removed. If the function was not scheduled, no error is raised.\n\n        This function is a wrapper to pyglet.clock.unschedule.\n        It has the additional benefit that all calllbacks are paused and\n        resumed when the node leaves or enters a scene.\n\n        You should not unschedule things using pyglet that where scheduled\n        by :meth:`schedule`/:meth:`schedule_interval`.\n        \n        Arguments:\n            callback (a function):\n                The function to remove from the schedule.\n        '
    self.scheduled_calls = [c for c in self.scheduled_calls if (c[0] != self)]
    self.scheduled_interval_calls = [c for c in self.scheduled_interval_calls if (c[0] != callback)]
    if self.is_running:
        pyglet.clock.unschedule(callback)

dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py CocosNode.unschedule/VarMisuse@33/266 `callback`->`self`