A file reader implementation using the POSIX select API using events. Reads
as much content as possible when new data is available at once, making the
file reading operation much more efficient when large chunks of data are
being transmitted.
Ideally would want to implement Epoll and Kqueue implementations of this
reader instead, to support much longer timeouts with proper stop methods.
Yields until the specified length of data is available, then removes the
data from the incoming data stream atomically and returns a duplicate of
it.
Returns null if the file reader stops while reading.
A file reader implementation using the POSIX select API using events. Reads as much content as possible when new data is available at once, making the file reading operation much more efficient when large chunks of data are being transmitted.
Ideally would want to implement Epoll and Kqueue implementations of this reader instead, to support much longer timeouts with proper stop methods.