OrReadChannel

case class OrReadChannel[F[_], A](x: ReadChannel[F, A], y: ReadChannel[F, A]) extends ReadChannel[F, A]

Input, which combine two other inputs.

Input, which combine two other inputs.

can be created with '|' operator.

 val x = read(x|y)
trait Serializable
trait Product
trait Equals
trait ReadChannel[F, A]
class Object
trait Matchable
class Any

Type members

Classlikes

abstract class CommonBase[B](nested: Reader[B])
class CommonReader(nested: Reader[A]) extends CommonBase[A]
class DoneCommonReader(nested: Reader[Unit]) extends CommonBase[Unit]
class WrappedReader[B](common: CommonBase[B], owner: ReadChannel[F, A]) extends Reader[B]

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 addCommonReader[C](common: C, addReaderFun: (C, ReadChannel[F, A]) => Unit): Unit
def addDoneReader(reader: Reader[Unit]): Unit
def addReader(reader: Reader[A]): Unit
def gopherApi: Gopher[F]
override def toString(): String
Definition Classes
Any

Inherited methods

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

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[A]]

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, A], ReadChannel[F, A])
Inherited from
ReadChannel
def filter(p: A => Boolean): ReadChannel[F, A]
Inherited from
ReadChannel
def filterAsync(p: A => F[Boolean]): ReadChannel[F, A]
Inherited from
ReadChannel
inline def fold[S](inline s0: S)(inline f: (S, A) => S): S
Inherited from
ReadChannel
def fold_async[S](s0: S)(f: (S, A) => F[S]): F[S]
Inherited from
ReadChannel
inline def foreach(inline f: A => 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: A => F[Unit]): F[Unit]
Inherited from
ReadChannel
def map[B](f: A => B): ReadChannel[F, B]
Inherited from
ReadChannel
def mapAsync[B](f: A => F[B]): ReadChannel[F, B]
Inherited from
ReadChannel
inline def optRead(): Option[A]
Inherited from
ReadChannel
def or(other: ReadChannel[F, A]): ReadChannel[F, A]
Inherited from
ReadChannel
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
inline def read(): A
Inherited from
ReadChannel
def zip[B](x: ReadChannel[F, B]): ReadChannel[F, (A, B)]
Inherited from
ReadChannel
def |(other: ReadChannel[F, A]): ReadChannel[F, A]
Inherited from
ReadChannel

Concrete fields

val xClosed: AtomicBoolean
val yClosed: AtomicBoolean

Inherited fields

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