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

Brunoais brunoaiss at
Thu Oct 13 13:41:31 UTC 2016


I'm new here, so if this is belongs to a different mailing list please
point me in the right direction.

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