set_timeout#
- TcpOslServer.set_timeout(timeout: float | None = None) None#
Set timeout value for execution of commands.
- Parameters:
- timeout: Optional[float]
Timeout in seconds to perform commands, it must be greater than zero or
None. Another functions will raise a timeout exception if the timeout period value has elapsed before the operation has completed. IfNoneis given, functions will wait until they’re finished (no timeout exception is raised). Defaults to30.
- Raises:
ValueErrorRaised when timeout <= 0.
TypeErrorRaised when timeout not type of
floatorNone.
Deprecated since version 0.5.0: Use
TcpOslServer.timeouts_register.default_valueinstead.