AsyncListIterator

class AsyncListIterator[F[_], T](l: AsyncList[F, T])(implicit evidence$1: CpsConcurrentMonad[F]) extends AsyncIterator[F, T]
trait AsyncIterator[F, T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def next: F[Option[T]]

return the next element of stream in option or None if stream is finished.

return the next element of stream in option or None if stream is finished.

Source:
AsyncListIterator.scala

Inherited methods

def filter(p: T => Boolean): AsyncIterator[F, T]

filter accumulator by p, returning only those values, which as satisficy p.

filter accumulator by p, returning only those values, which as satisficy p.

Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def filterAsync(p: T => F[Boolean]): AsyncIterator[F, T]

filter accumulator by p, returning only those values, which as satisficy p. Note, that p is applied sequentially

filter accumulator by p, returning only those values, which as satisficy p. Note, that p is applied sequentially

Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def find(p: T => Boolean): F[Option[T]]

Find first value wich satisficy p

Find first value wich satisficy p

Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def findAsync(p: T => F[Boolean]): F[Option[T]]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def flatMap[S](f: T => AsyncIterator[F, S]): AsyncIterator[F, S]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def flatMapAsync[S](f: T => F[AsyncIterator[F, S]]): AsyncIterator[F, S]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def flatMapTry[S](f: Try[T] => AsyncIterator[F, S]): AsyncIterator[F, S]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def flatMapTryAsync[S](f: Try[T] => F[AsyncIterator[F, S]]): AsyncIterator[F, S]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def fold[S](s0: S)(f: (S, T) => S): F[S]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def foldAsync[S](s0: S)(f: (S, T) => F[S]): F[S]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def inTry: AsyncIterator[F, Try[T]]

synonym for mapTry(identity)

synonym for mapTry(identity)

Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def map[S](f: T => S): AsyncIterator[F, S]

return iterator with values mapped by f

return iterator with values mapped by f

Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def mapAsync[S](f: T => F[S]): AsyncIterator[F, S]

map over async function. Substituted automatically when using await inside async block in map.

map over async function. Substituted automatically when using await inside async block in map.

Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def mapTry[S](f: Try[T] => S): AsyncIterator[F, S]

map over Try[T], which allows to handle the cases, when next returns a failure. Be carefuel for situation, when failed next have no effect - in this case we will receive the infinite sequence of failuers.

map over Try[T], which allows to handle the cases, when next returns a failure. Be carefuel for situation, when failed next have no effect - in this case we will receive the infinite sequence of failuers.

Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def mapTryAsync[S](f: Try[T] => F[S]): AsyncIterator[F, S]

async version of mapTry

async version of mapTry

Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def scan[S](s0: S)(f: (S, T) => S): AsyncIterator[F, S]

Scan the value and output in the resulting iterator cummulative accumulated values. Note, that

Scan the value and output in the resulting iterator cummulative accumulated values. Note, that

  • f should be side effects free, since it can be reapplied in situation, when parallel threads tryng to read the next value
  • s0 and f(s,t) should not be nulls.
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def scanAsync[S](s0: S)(f: (S, T) => F[S]): AsyncIterator[F, S]

Scan the value and output in the resulting iterator cummulative accumulated values. Note, that

Scan the value and output in the resulting iterator cummulative accumulated values. Note, that

  • f should be side effects free, since it can be reapplied in situation, when parallel threads tryng to read the next value
  • s0 and f(s,t) should not be nulls.
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def take[CC[_]](n: Int)(using Factory[T, CC[T]]): F[CC[T]]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def takeAll[CC[_]](n: Int)(using Factory[T, CC[T]]): F[CC[T]]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def takeList(n: Int): F[List[T]]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def takeTo[B <: Growable[T]](buffer: B, n: Int): F[B]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala
def takeVector(n: Int): F[Vector[T]]
Inherited from:
AsyncIterator
Source:
AsyncIterator.scala

Concrete fields