code: def set(self) -> None:
          
          if not self._value:
              self._value = True
  
              for fut in self._waiters:
                  if not fut.done():
                      fut.set_result(None)
docs: Set the internal flag to ``True``. All waiters are awakened.
  
          Calling `.wait` once the flag is set will not block.