Packages

object Empty extends Spool[Nothing]

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++[B >: Nothing](that: => Future[Spool[B]]): Future[Spool[B]]

    Concatenates two spools.

    Concatenates two spools.

    Definition Classes
    Spool
  4. def ++[B >: Nothing](that: => Spool[B]): Spool[B]

    Concatenates two spools.

    Concatenates two spools.

    Definition Classes
    Spool
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. def collect[B](f: PartialFunction[Nothing, B]): Future[Spool[B]]

    The standard Scala collect, in order to implement map & filter.

    The standard Scala collect, in order to implement map & filter.

    It may seem unnatural to return a Future[…] here, but we cannot know whether the first element exists until we have applied its filter.

    Definition Classes
    Spool
  9. def concat[B >: Nothing](that: Future[Spool[B]]): Future[Spool[B]]

    Definition Classes
    Spool
    See also

    operator ++

  10. def concat[B >: Nothing](that: Spool[B]): Spool[B]

    Definition Classes
    Spool
    See also

    operator ++

  11. def distinctBy[B](fn: (Nothing) => B): Spool[Nothing]

    Builds a new Spool from this one by filtering out duplicate elements, elements for which fn returns the same value.

    Builds a new Spool from this one by filtering out duplicate elements, elements for which fn returns the same value.

    NB: this has space consumption O(N) of the number of distinct items

    Definition Classes
    Spool
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def filter(f: (Nothing) => Boolean): Future[Spool[Nothing]]
    Definition Classes
    Spool
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  16. def flatMap[B](f: (Nothing) => Future[Spool[B]]): Future[Spool[B]]

    Applies a function that generates a spool for each element in this spool, flattening the result into a single spool.

    Applies a function that generates a spool for each element in this spool, flattening the result into a single spool.

    Definition Classes
    Spool
  17. def foldLeft[B](z: B)(f: (B, Nothing) => B): Future[B]
    Definition Classes
    Spool
  18. def force: Future[Unit]

    Eagerly executes all computation represented by this Spool (presumably for side-effects), and returns a Future representing its completion.

    Eagerly executes all computation represented by this Spool (presumably for side-effects), and returns a Future representing its completion.

    Definition Classes
    Spool
  19. def foreach[B](f: (Nothing) => B): Future[Unit]

    Apply {{f}} for each item in the spool, until the end.

    Apply {{f}} for each item in the spool, until the end. {{f}} is applied as the items become available.

    Definition Classes
    Spool
  20. def foreachElem[B](f: (Option[Nothing]) => B): Future[Unit]

    A version of {{foreach}} that wraps each element in an {{Option}}, terminating the stream (EOF) with {{None}}.

    A version of {{foreach}} that wraps each element in an {{Option}}, terminating the stream (EOF) with {{None}}.

    Definition Classes
    Spool
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def head: Nothing

    The first element of the spool.

    The first element of the spool. Invalid for empty spools.

    Definition Classes
    EmptySpool
  24. def headOption: Option[Nothing]

    The first element of the spool if it is non-empty.

    The first element of the spool if it is non-empty.

    Definition Classes
    Spool
  25. def isEmpty: Boolean
    Definition Classes
    EmptySpool
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def map[B](f: (Nothing) => B): Spool[B]
    Definition Classes
    Spool
  28. def mapFuture[B](f: (Nothing) => Future[B]): Future[Spool[B]]

    Applies a function that generates a Future[B] for each element of this spool.

    Applies a function that generates a Future[B] for each element of this spool. The returned future is satisfied when the head of the resulting spool is available.

    Definition Classes
    Spool
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def reduceLeft[B >: Nothing](f: (B, Nothing) => B): Future[B]
    Definition Classes
    Spool
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def tail: Future[Nothing]

    The (deferred) tail of the spool.

    The (deferred) tail of the spool. Invalid for empty spools.

    Definition Classes
    EmptySpool
  35. def take(n: Int): Spool[Nothing]

    Take the first n elements of the Spool as another Spool (adapted from Stream.take)

    Take the first n elements of the Spool as another Spool (adapted from Stream.take)

    Definition Classes
    Spool
  36. def takeWhile(f: (Nothing) => Boolean): Spool[Nothing]

    Take elements from the head of the Spool (lazily), while the given condition is true.

    Take elements from the head of the Spool (lazily), while the given condition is true.

    Definition Classes
    Spool
  37. def toSeq: Future[Seq[Nothing]]

    Fully buffer the spool to a {{Seq}}.

    Fully buffer the spool to a {{Seq}}. The returned future is satisfied when the entire result is ready.

    Definition Classes
    Spool
  38. def toString(): String
    Definition Classes
    Empty → AnyRef → Any
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. def zip[B](that: Spool[B]): Spool[(Nothing, B)]

    Zips two Spools returning a Spool of Tuple2s.

    Zips two Spools returning a Spool of Tuple2s.

    If one Spool is shorter, excess elements of the longer Spool are discarded.

    c.f. scala.collection.immutable.Stream#zip

    Definition Classes
    Spool

Inherited from Spool[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped