I have a thread constantly receiving new data using this function, but I want to stop it by setting boolean to false. The stream must support boolean polling and cannot, if blocked by readObject ()
Thread.interrupt, InterruptedException, InterruptedIOException. , !