/Anyway

Close it, anyway.

Primary LanguageScalaApache License 2.0Apache-2.0

Anyway

Artifacts

coming soon

usage

when

class Resource {
  def close(): Unit = ???
}


val resource = new Resource

then

import com.noriakihoriuchi.anyway._


using(resource) { res =>
 ???
} // close method will be called

Please see the test for more information.