bracket

fun <T : Any> bracket(opening: () -> T, terminationAction: () -> Unit): T?