set_timeout#
- Optislang.set_timeout(timeout: float | None = None) None#
 Set the timeout value for the executing commands.
- Parameters:
 - timeout: Optional[float]
 Timeout in seconds to perform commands. This value must be greater than zero or
None. The default isNone. Another function raises a timeout exception if the timeout value has elapsed before an operation has completed. If the timeout isNone, functions wait until they’re finished, and no timeout exception is raised.
- Raises:
 ValueErrorRaised when the timeout value is less than or equal to 0.
TypeErrorRaised when the timeout is not type of
floatorNone.
Deprecated since version 0.5.0: Use
Optislang.timeoutinstead.