def _get_feedback(_self=cmd): # INTERNAL # WARNING: internal routine, subject to change l = [] if _self.lock_attempt(_self): try: r = _cmd.get_feedback(_self._COb) while r: l.append(r) r = _cmd.get_feedback(_self._COb) finally: _self.unlock(-1, _self) else: l = None return l
def _get_feedback(_self=cmd): # INTERNAL # WARNING: internal routine, subject to change l = [] if _self.lock_attempt(_self): try: r = _cmd.get_feedback(_self._COb) while r: l.append(r) r = _cmd.get_feedback(_self._COb) finally: _self.unlock(-1,_self) else: l = None return l