DisposeableExtensions

better.files.Implicits.DisposeableExtensions
implicit class DisposeableExtensions[A](resource: A)(implicit evidence$1: Disposable[A])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

Lightweight automatic resource management Closes the resource when done e.g.

Lightweight automatic resource management Closes the resource when done e.g.

for {
in <- file.newInputStream.autoClosed
} in.write(bytes)
// in is closed now

Attributes