christophsturm
11/19/2020, 11:15 AMfun <T:Any> TestConfiguration.autoClose(wrapped: T, function: (T) -> Unit): T {
autoClose(object :AutoCloseable{
override fun close() {
function(wrapped)
}
})
return wrapped
}