package util
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- util
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
type
Resource = AutoCloseable
Scope-managed resource.
-
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( ... )
- class ScopedVar[A] extends AnyRef
- sealed trait ShowBuilder extends AnyRef
- final case class UnsupportedException(msg: String) extends Exception with Product with Serializable
Value Members
-
def
acquire[R <: Resource](res: R)(implicit in: Scope): R
Acquire given resource in implicit scope.
-
def
defer(f: ⇒ Unit)(implicit in: Scope): Unit
Defer cleanup until the scope closes.
- def partitionBy[T](elems: Seq[T], batches: Int)(f: (T) ⇒ Any): Map[Int, Seq[T]]
- def partitionBy[T](elems: Seq[T])(f: (T) ⇒ Any): Map[Int, Seq[T]]
- def procs: Int
-
def
time[T](msg: String)(f: ⇒ T): T
Print running time of closure to stdout.
-
def
unreachable: Nothing
Marker methods, called whenever a specific control-flow branch should never happen.
- def unsupported(s: String = ""): Nothing
-
def
unsupported(v: Any): Nothing
Marker method, called whenever a specific control-flow branch is not supported.
- object And
- object Scope
- object ScopedVar
- object ShowBuilder
- object Stats
- object StringUtils
- object UnreachableException extends Exception with Product with Serializable