Kotlin Nested Use Function for Java try-with-resource

前端 未结 0 915
忘了有多久
忘了有多久 2021-01-29 12:15

My goal is to auto-close Socket and OutputStream in try-catch block.

After searching and learning from Java try-with-resouce, I ended up using <

相关标签:
回答
  • 消灭零回复
提交回复
热议问题