package lang
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- lang
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- implicit final class ThrowableOps extends AnyVal
Value Members
- def attemptClose(resource: AutoCloseable, t: Throwable = null): Unit
- def attemptDestroy[R](resource: R, destroy: (R) ⇒ Any, t: Throwable = null): Any
- def borrow[R, A](resource: ⇒ R)(destroy: (R) ⇒ Any)(op: (R) ⇒ A): A
- def borrow[R <: AutoCloseable, A](resource: ⇒ R)(op: (R) ⇒ A): A
-
def
borrowExplicit[R, A](resource: ⇒ R)(destroy: (R) ⇒ Any)(op: (R) ⇒ A): A
When resource types become autocloseble in new versions of Scala, code that used to be compiled using the 3 arg list borrow instead become interpreted as a function call on the result of the two arg list version.
When resource types become autocloseble in new versions of Scala, code that used to be compiled using the 3 arg list borrow instead become interpreted as a function call on the result of the two arg list version.
To ensure consistent use of the 3-arglist version, modify the code to use borrowExplicit
See, for example, the source code for com.mchange.sc.v2.io.RichFile.contentsAsString(...)
- implicit lazy val logger: MLogger