Package

com.mchange.sc.v2

lang

Permalink

package lang

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. lang
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit final class ThrowableOps extends AnyVal

    Permalink

Value Members

  1. def attemptClose(resource: AutoCloseable, t: Throwable = null): Unit

    Permalink
  2. def attemptDestroy[R](resource: R, destroy: (R) ⇒ Any, t: Throwable = null): Any

    Permalink
  3. def borrow[R, A](resource: ⇒ R)(destroy: (R) ⇒ Any)(op: (R) ⇒ A): A

    Permalink
  4. def borrow[R <: AutoCloseable, A](resource: ⇒ R)(op: (R) ⇒ A): A

    Permalink
  5. def borrowExplicit[R, A](resource: ⇒ R)(destroy: (R) ⇒ Any)(op: (R) ⇒ A): A

    Permalink

    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(...)

  6. implicit lazy val logger: MLogger

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped