AsyncList

cps.stream.AsyncList
See theAsyncList companion object
sealed trait AsyncList[F[_], +T]

Mininal async stream.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Cons[F, T]
class Empty[F]
class Wait[F, T]

Members list

Concise view

Value members

Abstract methods

def append[S >: T](x: => AsyncList[F, S]): AsyncList[F, S]
def filter(p: T => Boolean): AsyncList[F, T]
def filterAsync(p: T => F[Boolean]): AsyncList[F, T]
def find(p: T => Boolean): F[Option[T]]
def findAsync(p: (T) => F[Boolean]): F[Option[T]]
def flatMap[S](f: T => AsyncList[F, S]): AsyncList[F, S]
def flatMapAsync[S](f: T => F[AsyncList[F, S]]): AsyncList[F, S]
def fold[S](s0: S)(f: (S, T) => S): F[S]
def foldAsync[S](s0: S)(f: (S, T) => F[S]): F[S]
def map[S](f: T => S): AsyncList[F, S]
def mapAsync[S](f: T => F[S]): AsyncList[F, S]
def merge[S >: T](other: AsyncList[F, S]): AsyncList[F, S]
def next: F[Option[(T, AsyncList[F, T])]]
def scanTail[S](s0: S)(f: (S, T) => S): AsyncList[F, S]
def scanTailAsync[S](s0: S)(f: (S, T) => F[S]): AsyncList[F, S]
def takeTo[B <: Growable[T]](buffer: B, n: Int): F[B]

Concrete methods

def appendAsync[S >: T](x: () => F[AsyncList[F, S]]): AsyncList[F, S]
def foreach[U](f: T => U): F[Unit]
def foreachAsync[U](f: T => F[U]): F[Unit]
def scan[S](s0: S)(f: (S, T) => S): AsyncList[F, S]
def scanAsync[S](s0: S)(f: (S, T) => F[S]): AsyncList[F, S]
def take[CC[_]](n: Int)(using Factory[T, CC[T]]): F[CC[T]]
def takeAll[CC[_]](n: Int)(using Factory[T, CC[T]]): F[CC[T]]
def takeList(n: Int): F[List[T]]
def takeListAll(): F[List[T]]