You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LongTraversables obtained from UnmanagedResources seem to load all data and are usable even after stream is closed. It should not load data until needed and if closed should throw an exception
import scalax.io.JavaConverters._
val fin = new FileInputStream("somefile.txt")
val chars = fin.asUnmanagedInput.chars
chars.head
fin.close
chars.head
last line should be an exception but isn't
The text was updated successfully, but these errors were encountered:
LongTraversables obtained from UnmanagedResources seem to load all data and are usable even after stream is closed. It should not load data until needed and if closed should throw an exception
last line should be an exception but isn't
The text was updated successfully, but these errors were encountered: