defer
Начиная с Kotlin: 1.3
inline fun defer(crossinline block: () -> Unit)
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlinx.cinterop/-defer-scope/defer.html