Looks like a while ago we got `Cleaner` for automa...
# kotlin-native
a
Looks like a while ago we got
Cleaner
for automatic resource deallocation! https://github.com/JetBrains/kotlin-native/blob/master/runtime/src/main/kotlin/kotlin/native/internal/Cleaner.kt
m
This is an internal class, so I would be hesitant to use it.
a
Seems like public, but experimental
As far as I see the
Cleaner
interface is public, and the
createCleaner
function is public as well. The latter is marked as experimental though.
m
it's in a package called internal.
But if it was intended to be internal, I think it should require opt-in or actually be declared internal
a
Yeah, would be nice if someone from JB clarified it)
👀 1