useWith

inline fun <T : AutoCloseable?> T.useWith(block: T.() -> Unit): T

Extended use scoping function with receiver Similar to apply which returns itself this