async def corofunc():
            nonlocal called
            called += 1
            raise ValueError("yeah async")
def lock_temp(self, key):
    self.lock(key)
    try:
      yield
    finally:
      self.unlock(key)