StdFileStream.waitForData - multiple declarations
- Function StdFileStream.waitForData
- Function StdFileStream.waitForData
- Function StdFileStream.waitForData
- Function StdFileStream.waitForData
Function StdFileStream.waitForData
Blocks until data becomes available for read
.
The maximum wait time can be customized with the timeout
parameter.
If there is already data availabe for read
, or if the connection is
closed, the function will return immediately without blocking.
Prototype
override bool waitForData(
core .time .Duration timeout
);
Parameters
Name | Description |
---|---|
timeout | Optional timeout , the default value of Duration.max
indicates an infinite timeout |
Returns
The function will return true
if data becomes available before the
timeout
is reached. If the connection gets closed, or the timeout
gets reached, false
is returned instead.
Function StdFileStream.waitForData
Blocks until data becomes available for read
.
The maximum wait time can be customized with the timeout
parameter.
If there is already data availabe for read
, or if the connection is
closed, the function will return immediately without blocking.
Prototype
override bool waitForData(
core .time .Duration timeout
);
Parameters
Name | Description |
---|---|
timeout | Optional timeout , the default value of Duration.max
indicates an infinite timeout |
Returns
The function will return true
if data becomes available before the
timeout
is reached. If the connection gets closed, or the timeout
gets reached, false
is returned instead.
Function StdFileStream.waitForData
Blocks until data becomes available for read
.
The maximum wait time can be customized with the timeout
parameter.
If there is already data availabe for read
, or if the connection is
closed, the function will return immediately without blocking.
Prototype
override bool waitForData(
core .time .Duration timeout
);
Parameters
Name | Description |
---|---|
timeout | Optional timeout , the default value of Duration.max
indicates an infinite timeout |
Returns
The function will return true
if data becomes available before the
timeout
is reached. If the connection gets closed, or the timeout
gets reached, false
is returned instead.
Function StdFileStream.waitForData
Blocks until data becomes available for read
.
The maximum wait time can be customized with the timeout
parameter.
If there is already data availabe for read
, or if the connection is
closed, the function will return immediately without blocking.
Prototype
override bool waitForData(
core .time .Duration timeout
);
Parameters
Name | Description |
---|---|
timeout | Optional timeout , the default value of Duration.max
indicates an infinite timeout |
Returns
The function will return true
if data becomes available before the
timeout
is reached. If the connection gets closed, or the timeout
gets reached, false
is returned instead.
Authors
Sönke Ludwig, Eric Cornelius
Copyright
© 2014 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.