async def corofunc():
            nonlocal called
            called = True
            return "some arbitrary value"
def exitMode(self, mode):
        if mode in self.modeList:
            self.modeList.remove(mode)