Blocks until data becomes available for read.
The maximum wait time can be customized with the
If there is already data availabe for read, or if the connection is
closed, the function will return immediately without blocking.
abstract bool waitForData(
.time .Duration timeout = max()
|timeout|| Optional timeout, the default value of |
The function will return
true if data becomes available before the
timeout is reached. If the connection gets closed, or the timeout
false is returned instead.
© 2012-2015 RejectedSoftware e.K.
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.