Wait for data to be available. Thread is idle in the meantime.
This method blocks until at least the specified number of bytes is available.