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. IfNone
is given, functions will wait until they’re finished (no timeout exception is raised). Defaults to30
.
- Raises:
ValueError
Raised when timeout <= 0.
TypeError
Raised when timeout not type of
float
orNone
.
Deprecated since version 0.5.0: Use
TcpOslServer.timeouts_register.default_value
instead.