
com.ox.bigdata.util.Using.scala Maven / Gradle / Ivy
The newest version!
package com.ox.bigdata.util
trait Using {
protected def using[A <: {def close() : Unit}, B](param: A)(f: A => B): B =
try {
f(param)
} finally {
param.close()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy