In “gallery/v14/src/main/kotlin/com/example/gallery/GetImageFromFile.kt”
- won’t the
.use
always callchannel.close()
on exit? if so, why do you needinvokeOnCancellation
? or does cancellation somehow avoid thefinally
in theuse
? - if I wanted to iterate through the file line by line, I presume I’d call
readline
rather thanread
and otherwise it’s roughly the same?