DoneReadChannel

class DoneReadChannel extends ReadChannel[F, Unit]
trait ReadChannel[F, Unit]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

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

Inherited types

type done = Unit
Inherited from
ReadChannel
Source
ReadChannel.scala
type read = A

Special type which is used in select statement.

Special type which is used in select statement.

See also

[gopher.Select]

Inherited from
ReadChannel
Source
ReadChannel.scala

Value members

Concrete methods

def addDoneReader(reader: Reader[Unit]): Unit
def addReader(reader: Reader[Unit]): Unit

Inherited methods

transparent inline
def ?: Unit

Synonim for read.

Synonim for read.

Inherited from
ReadChannel
Source
ReadChannel.scala
def aOptRead(): F[Option[Unit]]

read value and return future with

read value and return future with

  • Some(value) if value is available to read
  • None if stream is closed.
Inherited from
ReadChannel
Source
ReadChannel.scala
def afold[S](s0: S)(f: (S, Unit) => S): F[S]
Inherited from
ReadChannel
Source
ReadChannel.scala
def afold_async[S](s0: S)(f: (S, Unit) => F[S]): F[S]
Inherited from
ReadChannel
Source
ReadChannel.scala
def aforeach(f: Unit => Unit): F[Unit]
Inherited from
ReadChannel
Source
ReadChannel.scala
def aforeach_async(f: Unit => F[Unit]): F[F[Unit]]
Inherited from
ReadChannel
Source
ReadChannel.scala
def append(other: ReadChannel[F, Unit]): ReadChannel[F, Unit]
Inherited from
ReadChannel
Source
ReadChannel.scala
def aread(): F[Unit]

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
Source
ReadChannel.scala
def asyncMonad: CpsSchedulingMonad[F]
Inherited from
ReadChannel
Source
ReadChannel.scala
def atake(n: Int): F[IndexedSeq[Unit]]

return F which contains sequence from first n elements.

return F which contains sequence from first n elements.

Inherited from
ReadChannel
Source
ReadChannel.scala
def dup(bufSize: Int, expiration: Duration): (ReadChannel[F, Unit], ReadChannel[F, Unit])
Inherited from
ReadChannel
Source
ReadChannel.scala
def filter(p: Unit => Boolean): ReadChannel[F, Unit]
Inherited from
ReadChannel
Source
ReadChannel.scala
def filterAsync(p: Unit => F[Boolean]): ReadChannel[F, Unit]
Inherited from
ReadChannel
Source
ReadChannel.scala
transparent inline
def fold[S](inline s0: S)(inline f: (S, Unit) => S): S
Inherited from
ReadChannel
Source
ReadChannel.scala
def fold_async[S](s0: S)(f: (S, Unit) => F[S]): F[S]
Inherited from
ReadChannel
Source
ReadChannel.scala
transparent inline
def foreach(inline f: Unit => 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
Source
ReadChannel.scala
def foreach_async(f: Unit => F[Unit]): F[Unit]
Inherited from
ReadChannel
Source
ReadChannel.scala
def map[B](f: Unit => B): ReadChannel[F, B]
Inherited from
ReadChannel
Source
ReadChannel.scala
def mapAsync[B](f: Unit => F[B]): ReadChannel[F, B]
Inherited from
ReadChannel
Source
ReadChannel.scala
transparent inline
def optRead(): Option[Unit]

read value and return

read value and return

  • Some(value) if value is available to read
  • None if stream is closed.

should be called inside async block.

Inherited from
ReadChannel
Source
ReadChannel.scala
def or(other: ReadChannel[F, Unit]): ReadChannel[F, Unit]
Inherited from
ReadChannel
Source
ReadChannel.scala
transparent inline
def read(): Unit

blocked read: if currently not element available - wait for one. Can be used only inside async block. If stream is closed and no values to read left in the stream - throws StreamClosedException

blocked read: if currently not element available - wait for one. Can be used only inside async block. If stream is closed and no values to read left in the stream - throws StreamClosedException

Inherited from
ReadChannel
Source
ReadChannel.scala
transparent inline
def take(n: Int): IndexedSeq[Unit]

take first n elements. should be called inside async block.

take first n elements. should be called inside async block.

Inherited from
ReadChannel
Source
ReadChannel.scala
def zip[B](x: ReadChannel[F, B]): ReadChannel[F, (Unit, B)]
Inherited from
ReadChannel
Source
ReadChannel.scala
def |(other: ReadChannel[F, Unit]): ReadChannel[F, Unit]
Inherited from
ReadChannel
Source
ReadChannel.scala

Inherited fields

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