parameters: (self, n=1)
docstring: By default, wake up one coroutine waiting on this condition, if any.
          If the calling coroutine has not acquired the lock when this method
          is called, a RuntimeError is raised.
  
          This method wakes up at most n of the coroutines waiting for the
          condition variable; it is a no-op if no coroutines are waiting.
  
          Note: an awakened coroutine does not actually return from its
          wait() call until it can reacquire the lock. Since notify() does
          not release the lock, its caller should.
docstring_summary: By default, wake up one coroutine waiting on this condition, if any.
          If the calling coroutine has not acquired the lock when this method
          is called, a RuntimeError is raised.
docstring_tokens: By default wake up one coroutine waiting on this condition if any . If the calling coroutine has not acquired the lock when this method is called a RuntimeError is raised .
function: def notify(self, n=1):
          """By default, wake up one coroutine waiting on this condition, if any.
          If the calling coroutine has not acquired the lock when this method
          is called, a RuntimeError is raised.
  
          This method wakes up at most n of the coroutines waiting for the
          condition variable; it is a no-op if no coroutines are waiting.
  
          Note: an awakened coroutine does not actually return from its
          wait() call until it can reacquire the lock. Since notify() does
          not release the lock, its caller should.
          """
          if not self.locked():
              raise RuntimeError('cannot notify on un-acquired lock')
  
          idx = 0
          for fut in self._waiters:
              if idx >= n:
                  break
  
              if not fut.done():
                  idx += 1
                  fut.set_result(False)
function_tokens: def notify ( self , n = 1 ) : if not self . locked ( ) : raise RuntimeError ( 'cannot notify on un-acquired lock' ) idx = 0 for fut in self . _waiters : if idx >= n : break if not fut . done ( ) : idx += 1 fut . set_result ( False )