Big Chungus
04/19/2021, 3:08 PMCloseable
interface and use extension is not in the common stdlib?Tomasz Krakowiak
04/19/2021, 3:18 PMBig Chungus
04/19/2021, 3:22 PMBig Chungus
04/19/2021, 3:22 PMlouiscad
04/19/2021, 4:50 PMBig Chungus
04/19/2021, 4:52 PMlouiscad
04/19/2021, 5:46 PMclose
function can throw IOException
, again, a very JVM thing (nowhere to be found in platforms supported by Kotlin/Native for example.
API-wise, it's a bit complicated to support that forever I think, because it might not be the best abstraction for resource releasing, and Kotlin might lack the facilities or consistency across supported platforms (i.e. shared XOR mutable on native for now) to allow for a better solution.gildor
05/10/2021, 8:01 AMclose()
be suspend and how it should work with java Closable/AutoClosable