LazySeq

fm.lazyseq.LazySeq$
See theLazySeq companion trait
object LazySeq

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
LazySeq.type

Members list

Concise view

Type members

Classlikes

final case class Both[L, R](left: L, right: R) extends EitherOrBoth[L, R]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class EitherOrBoth[L, R]
class Object
trait Matchable
class Any
sealed abstract class EitherOrBoth[+L, +R]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Both[L, R]
class Left[L]
class Right[R]
final case class Left[L](left: L) extends EitherOrBoth[L, Nothing]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class EitherOrBoth[L, Nothing]
class Object
trait Matchable
class Any
final case class Right[R](right: R) extends EitherOrBoth[Nothing, R]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class EitherOrBoth[Nothing, R]
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[T](readers: TraversableOnce[LazySeq[T]]): LazySeq[T]

Combine multiple LazySeqs into a single one by sequentially reading each reader

Combine multiple LazySeqs into a single one by sequentially reading each reader

Attributes

def build[T](queueSize: Int)(f: Growable[T] => Unit): LazySeq[T]

Asynchronously build a LazySeq by spinning up a Producer thread and running the given function to produce elements

Asynchronously build a LazySeq by spinning up a Producer thread and running the given function to produce elements

Attributes

def build[T](f: Growable[T] => Unit): LazySeq[T]

Asynchronously build a LazySeq by spinning up a Producer thread and running the given function to produce elements

Asynchronously build a LazySeq by spinning up a Producer thread and running the given function to produce elements

Attributes

def continually[T](elem: => T): LazySeq[T]

Create an infinite LazySeq containing the given element expression (which is computed for each occurrence).

Create an infinite LazySeq containing the given element expression (which is computed for each occurrence).

Attributes

The default number of threads to use for parallel operations

The default number of threads to use for parallel operations

Note: According to The java.lang.Runtime Javadocs "this value may change during a particular invocation of the virtual machine." So that's probably why this was made a def and not a val or lazy val.

Attributes

def empty[T]: LazySeq[T]

An empty resource reader

An empty resource reader

Attributes

def parCombine[T](readers: TraversableOnce[LazySeq[T]], threads: Int, queueSize: Int): LazySeq[T]

Combine multiple LazySeqs into a single one by reading the readers in parallel

Combine multiple LazySeqs into a single one by reading the readers in parallel

Attributes

def wrap[T](self: TraversableOnce[T]): LazySeq[T]

Wraps a TraversableOnce in a LazySeq

Wraps a TraversableOnce in a LazySeq

Attributes

def wrap[T](it: Iterator[T]): LazySeq[T]

Wraps a java.util.Iterator in a LazySeq

Wraps a java.util.Iterator in a LazySeq

Attributes

def wrap[T](it: Iterable[T]): LazySeq[T]

Wraps a java.util.Iterator in a LazySeq

Wraps a java.util.Iterator in a LazySeq

Attributes

def wrap[T, U](foreach: (T => U) => Unit): LazySeq[T]

Wrap a foreach method in a LazySeq

Wrap a foreach method in a LazySeq

Attributes