try-with-resources: “use” extension function in Kotlin does not always work

后端 未结 4 1452
抹茶落季
抹茶落季 2021-01-11 10:51

I had some trouble expressing the Java\'s try-with-resources construct in Kotlin. In my understanding, every expression that is an instance of AutoClosable shou

4条回答
提交回复
热议问题