bracket

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

Deprecated

Use bracketIfAlive

Replace with

bracketIfAlive(opening, terminationAction)