<@UDB0VFBPV> did you see AutoCloseable link?
# kotlin-fuel
i
@Derk-Jan Karrenbeld did you see AutoCloseable link?
d
Just did! Looks very nice :D
i
would thrown Exceptions bypass FuelError?
d
No, I would capture it in runcatching
(so it would not blow up :p )
i
odd, runcatching return as Result<> confusing to different Result.
d
Yes, it's a Kotlin feature.
i
Result<> is not return Type over limitations.
d
Correct
i
you can bypass the warning by setting compiler arguments.
d
I don't think that's a good idea.
Anyway, thanks for the link! I'll see if I can use autoclosable link. The issue we have is that we don't want to close the stream until it is read and we don't want to read necessarily instantly :o so it might not be read right there in the block.
i
InputStream is already AutoCloseable
race conditions type of thing?
d
Shouldn't be
I think my PR might fix the issues currently in 1.16.0 :)
Right. I just see what you meant. I actually use autoclosable :) because you're right. Inlutstream and outputstream are autoclosable