Packages

package util

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

Type Members

  1. type Resource = AutoCloseable

    Scope-managed resource.

  2. trait Scope extends AnyRef

    Scoped implicit lifetime.

    Scoped implicit lifetime.

    The main idea behind the Scope is to encode resource lifetimes through a concept of an implicit scope. Scopes are necessary to acquire resources. They are responsible for disposal of the resources once the evaluation exits the demarkated block in the source code.

    See https://www.youtube.com/watch?v=MV2eJkwarT4 for details.

    Annotations
    @implicitNotFound()
  3. class ScopedVar[A] extends AnyRef
  4. sealed trait ShowBuilder extends AnyRef
  5. final case class UnsupportedException(msg: String) extends Exception with Product with Serializable

Value Members

  1. def acquire[R <: Resource](res: R)(implicit in: Scope): R

    Acquire given resource in implicit scope.

  2. def defer(f: => Unit)(implicit in: Scope): Unit

    Defer cleanup until the scope closes.

  3. def partitionBy[T](elems: Seq[T], batches: Int)(f: (T) => Any): Map[Int, Seq[T]]
  4. def partitionBy[T](elems: Seq[T])(f: (T) => Any): Map[Int, Seq[T]]
  5. def procs: Int
  6. def time[T](msg: String)(f: => T): T

    Print running time of closure to stdout.

  7. def unreachable: Nothing

    Marker methods, called whenever a specific control-flow branch should never happen.

  8. def unsupported(s: String = ""): Nothing
  9. def unsupported(v: Any): Nothing

    Marker method, called whenever a specific control-flow branch is not supported.

  10. object And
  11. object ScalaStdlibCompat
  12. object Scope
  13. object ScopedVar
  14. object ShowBuilder
  15. object StringUtils
  16. case object UnreachableException extends Exception with Product with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped