A method for managing a simple resource.
A method for managing a simple resource. After running a computation, the resource will be closed and the computation will be returned.
More complicated resource management may warrant a dependency on "com.jsuereth" % "scala-arm", but this simple method handles most cases.
a closeable resource
a computation involving the supplied resource
the result of the computation over the resource