MappedAsyncReadChannel

class MappedAsyncReadChannel[F[_], A, B](internal: ReadChannel[F, A], f: A => F[B]) extends ReadChannel[F, B]
trait ReadChannel[F, B]
class Object
trait Matchable
class Any
class MappedAsyncChannel[F, W, RA, RB]

Type members

Classlikes

class MReader(nested: Reader[B]) extends Reader[A]

Inherited classlikes

Inherited from
ReadChannel
class SimpleReader(f: Try[A] => Unit)
Inherited from
ReadChannel

Inherited types

type done = Unit
Inherited from
ReadChannel
type read = A
Inherited from
ReadChannel

Value members

Concrete methods

def addDoneReader(reader: Reader[Unit]): Unit
def addReader(reader: Reader[B]): Unit
def gopherApi: Gopher[F]

Inherited methods

inline def ?: B
Inherited from
ReadChannel
def aOptRead(): F[Option[B]]
Inherited from
ReadChannel
def afold[S](s0: S)(f: (S, B) => S): F[S]
Inherited from
ReadChannel
def afold_async[S](s0: S)(f: (S, B) => F[S]): F[S]
Inherited from
ReadChannel
def aforeach(f: B => Unit): F[Unit]
Inherited from
ReadChannel
def aforeach_async(f: B => F[Unit]): F[F[Unit]]
Inherited from
ReadChannel
def append(other: ReadChannel[F, B]): ReadChannel[F, B]
Inherited from
ReadChannel
def aread(): F[B]

async version of read. Immediatly return future, which will contains result of read or failur with StreamClosedException in case of stream is closed.

async version of read. Immediatly return future, which will contains result of read or failur with StreamClosedException in case of stream is closed.

Inherited from
ReadChannel
def asyncMonad: CpsSchedulingMonad[F]
Inherited from
ReadChannel
def atake(n: Int): F[IndexedSeq[B]]

return F which contains sequence from first n elements.

return F which contains sequence from first n elements.

Inherited from
ReadChannel
def dup(bufSize: Int, expiration: Duration): (ReadChannel[F, B], ReadChannel[F, B])
Inherited from
ReadChannel
def filter(p: B => Boolean): ReadChannel[F, B]
Inherited from
ReadChannel
def filterAsync(p: B => F[Boolean]): ReadChannel[F, B]
Inherited from
ReadChannel
inline def fold[S](inline s0: S)(inline f: (S, B) => S): S
Inherited from
ReadChannel
def fold_async[S](s0: S)(f: (S, B) => F[S]): F[S]
Inherited from
ReadChannel
inline def foreach(inline f: B => Unit): Unit

run code each time when new object is arriced. until end of stream is not reached

run code each time when new object is arriced. until end of stream is not reached

Inherited from
ReadChannel
def foreach_async(f: B => F[Unit]): F[Unit]
Inherited from
ReadChannel
def map[B](f: B => B): ReadChannel[F, B]
Inherited from
ReadChannel
def mapAsync[B](f: B => F[B]): ReadChannel[F, B]
Inherited from
ReadChannel
inline def optRead(): Option[B]
Inherited from
ReadChannel
def or(other: ReadChannel[F, B]): ReadChannel[F, B]
Inherited from
ReadChannel
inline def read(): B
Inherited from
ReadChannel
def zip[B](x: ReadChannel[F, B]): ReadChannel[F, (B, B)]
Inherited from
ReadChannel
def |(other: ReadChannel[F, B]): ReadChannel[F, B]
Inherited from
ReadChannel

Inherited fields

lazy val done: ReadChannel[F, Unit]
Inherited from
ReadChannel