TaskPipe.waitForData
never returns if no new data is written
#1605
Labels
TaskPipe.waitForData
never returns if no new data is written
#1605
So, I am not sure that is a bug or just badly documented intended behaviour:
When I am calling
waitForData(250.msecs)
on a task pipe, my expectation is that it will return after either data arrived, the task pipe is closed or 250 msecs passed.What actually happens is that it only returns when the socked is closed or data arrived.
Inside the function is a while loop that will repeat the waiting for as long as there is no data and the pipe isn't closed. See:
https://github.com/rejectedsoftware/vibe.d/blob/34f1b81242bfa30a5b66faef443500452ca79eac/source/vibe/stream/taskpipe.d#L112-L116
Is that a bug or intended?
The text was updated successfully, but these errors were encountered: