read abstract method
Returns a list of the next size
elements.
Returns a list with less than size
elements if the end of stream is
encountered before size
elements are read.
If an error is encountered before reading size
elements, the error
will be thrown.
Implementation
Future<List<T>> read(int size);