code: async def waitfini(self, timeout=None):
          '''
          Wait for the base to fini()
  
          Returns:
              None if timed out, True if fini happened
  
          Example:
  
              base.waitfini(timeout=30)
  
          '''
  
          if self.isfini:
              return True
  
          if self.finievt is None:
              self.finievt = asyncio.Event()
  
          return await s_coro.event_wait(self.finievt, timeoutync def waitfini(self, timeout=None):
          '''
          Wait for the base to fini()
  
          Returns:
              None if timed out, True if fini happened
  
          Example:
  
              base.waitfini(timeout=30)
  
          '''
  
          if self.isfini:
              return True
  
          if self.finievt is None:
              self.finievt = asyncio.Event()
  
          return await s_coro.event_wait(self.finievt, timeout)
docs: Wait for the base to fini()
  
          Returns:
              None if timed out, True if fini happened
  
          Example:
  
              base.waitfini(timeout=30)