withDefer

inline fun <T> withDefer(block: (defer: (() -> Unit) -> Unit) -> T): T