Does Kotlin have anything like C#'s `using` statem...
# announcements
z
Does Kotlin have anything like C#'s
using
statement? I have a resource that needs to be closed once the user is finished with it. In Java I would need a
try
/
finally
and manually call
close
in the finally. C# has
using
which will call `disposable automatically when I leave the scope.