Packages

abstract class Stream[F[_], A] extends AnyRef

Self Type
Stream[F, A]
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Stream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Stream()(implicit arg0: Effect[F])

Abstract Value Members

  1. abstract def cancel(): F[Unit]
  2. abstract def pull(): F[Option[A]]

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(rhs: Stream[F, A]): Stream[F, A]

    See also

    concat

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. def collect[B](f: PartialFunction[A, B]): Stream[F, B]
  8. def concat(rhs: Stream[F, A]): Stream[F, A]

    Sequently concat two streams

    Sequently concat two streams

    Stream(1,2,3) ++ Stream(4,5,6)
    // 1,2,3,4,5,6
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def flatMap[B](f: (A) => Stream[F, B]): Stream[F, B]

    See also

    flatMapConcat

  12. def flatMapAsync[B](f: (A) => F[Stream[F, B]]): Stream[F, B]
  13. def flatMapConcat[B](f: (A) => Stream[F, B]): Stream[F, B]

    Merges underlying streams to one line.

    Merges underlying streams to one line.

    Stream.eval(1, 2, 3) flatMapConcat { x =>
      Stream.eval(x + "a", x + "b", x + "c")
    }
    // 1a,1b,1c,2a,2b,2c,3a,3b,3c
  14. def flatMapMerge[B](concurrency: Int)(f: (A) => Stream[F, B]): Stream[F, B]

    Merges underlying streams concurrently.

    Merges underlying streams concurrently.

    concurrency

    number of concurrent underlying streams

    Stream.eval(1, 2, 3) flatMapMerge(3) { x =>
      Stream.eval(x + "a", x + "b", x + "c")
    }
    // 1a,2a,3a,1b,2b,3b,1c,2c,3c
  15. def flatMapMergeAsync[B](concurrency: Int)(f: (A) => F[Stream[F, B]]): Stream[F, B]
  16. def fold[B](default: B)(f: (B, A) => B): F[B]
  17. def foldAsync[B](default: B)(f: (B, A) => F[B]): F[B]
  18. def foreach(f: (A) => F[Unit]): F[Unit]
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def handleConsumed: (F[Unit], Stream[F, A])
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def map[B](f: (A) => B): Stream[F, B]
  24. def mapAsync[B](f: (A) => F[B]): Stream[F, B]
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. def over[B](default: B)(f: (B, Option[A]) => F[B]): Stream[F, A]

    React on values of the stream keeping it the same.

    React on values of the stream keeping it the same. Useful when you want to track progress of downloading.

    file
      .over(0L) {
        case (acc, chunk) =>
          val loaded = chunk.fold(acc)(_.length.toLong + acc)
          showProgress(loaded, file.bytesLength)
      }
      .to(s3bucket("my-large-file"))
  29. def sort(numRacks: Int)(f: (A) => Int): List[Stream[F, A]]

    Sort elements of the stream between "racks".

    Sort elements of the stream between "racks".

    val List(girls, boys, queers) = persons.sort(3) {
      case person if person.isFemale => 0
      case person if person.isMale => 1
      case person => 2
    }
    numRacks

    Number of racks.

    f

    Takes element of the stream return number of rack.

    returns

    List of streams appropriate to racks.

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def to[U](f: (Stream[F, A]) => F[U]): F[U]
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped