Cancelation -- use cases

Remi Forax forax at univ-mlv.fr
Mon Dec 31 08:59:54 PST 2012


On 12/31/2012 05:46 PM, Brian Goetz wrote:
>> BTW, just noticed you can't get the lines of
>> a file as a Stream.
>
> We have this:
>
> interface Reader {
>    Stream<String> lines()
> }
>

Having it on Reader instead of Files means that the user has to close 
the stream himself.

Rémi



More information about the lambda-libs-spec-observers mailing list