defer

inline fun defer(crossinline block: () -> Unit)(source)

Since Kotlin

1.3