https://kotlinlang.org logo
#kotlin-fuel
Title
# kotlin-fuel
i

itnoles

11/12/2018, 3:18 AM
@Derk-Jan Karrenbeld did you see AutoCloseable link?
d

Derk-Jan Karrenbeld

11/12/2018, 3:19 AM
Just did! Looks very nice :D
i

itnoles

11/12/2018, 3:20 AM
would thrown Exceptions bypass FuelError?
d

Derk-Jan Karrenbeld

11/12/2018, 3:21 AM
No, I would capture it in runcatching
(so it would not blow up :p )
i

itnoles

11/12/2018, 3:22 AM
odd, runcatching return as Result<> confusing to different Result.
d

Derk-Jan Karrenbeld

11/12/2018, 3:23 AM
Yes, it's a Kotlin feature.
i

itnoles

11/12/2018, 3:23 AM
Result<> is not return Type over limitations.
d

Derk-Jan Karrenbeld

11/12/2018, 3:23 AM
Correct
i

itnoles

11/12/2018, 3:24 AM
you can bypass the warning by setting compiler arguments.
d

Derk-Jan Karrenbeld

11/12/2018, 3:24 AM
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

itnoles

11/12/2018, 3:25 AM
InputStream is already AutoCloseable
race conditions type of thing?
d

Derk-Jan Karrenbeld

11/12/2018, 3:26 AM
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