Is there a way to make BufferedReader.readLine()non-freezing?
I create a server that:
- Checks if the client has completed any input.
- If not, it executes a different code and, in the end, returns to checking the client for input.
How to check if the client performed any input without starting readLine()? If I run readLine(), does the thread freeze until input is delivered?
source
share