Request/discussion: BufferedReader reading using async API while providing sync API

Brunoais brunoaiss at
Thu Oct 13 13:45:09 UTC 2016


I looked at BufferedReader source code for java 9 long with the source 
code of the channels/streams used. I noticed that, like in java 7, 
BufferedReader does not use an Async API to load data from files, 
instead, the data loading is all done synchronously even when the OS 
allows requesting a file to be read and getting a warning later when the 
file is effectively read.

Why Is BufferedReader not async while providing a sync API?

More information about the core-libs-dev mailing list