parameters: (self, timeout_sec)
return_statement: return self._value
docstring: Waits for the condition to be set. Returns if it was set within the
          timeout
docstring_summary: Waits for the condition to be set. Returns if it was set within the
          timeout
docstring_tokens: Waits for the condition to be set . Returns if it was set within the timeout
function: def wait_set(self, timeout_sec):
          """Waits for the condition to be set. Returns if it was set within the
          timeout"""
          with self._cond:
              if not self._value:
                  self._cond.wait(timeout=timeout_sec)
          return self._value
function_tokens: def wait_set ( self , timeout_sec ) : with self . _cond : if not self . _value : self . _cond . wait ( timeout = timeout_sec ) return self . _value