Channel

trait Channel[F[_], W, R] extends WriteChannel[F, W] with ReadChannel[F, R] with Closeable
Companion
object
trait Closeable
trait AutoCloseable
trait ReadChannel[F, R]
trait WriteChannel[F, W]
class Object
trait Matchable
class Any
class ChannelWithExpiration[F, W, R]
class ChFlatMappedChannel[F, W, RA, RB]
class FilteredAsyncChannel[F, W, R]
class FilteredChannel[F, W, R]
class MappedAsyncChannel[F, W, RA, RB]
class MappedChannel[F, W, RA, RB]
class PromiseChannel[F, A]

Type members

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
type write = A
Inherited from
WriteChannel

Value members

Abstract methods

override def gopherApi: Gopher[F]
Definition Classes
def isClosed: Boolean

Concrete methods

override def filter(p: R => Boolean): Channel[F, W, R]
Definition Classes
override def filterAsync(p: R => F[Boolean]): Channel[F, W, R]
Definition Classes
def flatMap[R1](f: R => ReadChannel[F, R1]): Channel[F, W, R1]
override def map[R1](f: R => R1): Channel[F, W, R1]
Definition Classes
override def mapAsync[R1](f: R => F[R1]): Channel[F, W, R1]
Definition Classes
def withExpiration(ttl: FiniteDuration, throwTimeouts: Boolean): ChannelWithExpiration[F, W, R]

Inherited methods

@targetName("write2")
inline def !(inline a: W): Unit
Inherited from
WriteChannel
@targetName("write1")
inline def <~(inline a: W): Unit
Inherited from
WriteChannel
inline def ?: R
Inherited from
ReadChannel
def aOptRead(): F[Option[R]]
Inherited from
ReadChannel
def addDoneReader(reader: Reader[Unit]): Unit
Inherited from
ReadChannel
def addReader(reader: Reader[R]): Unit
Inherited from
ReadChannel
def addWriter(writer: Writer[W]): Unit
Inherited from
WriteChannel
def afold[S](s0: S)(f: (S, R) => S): F[S]
Inherited from
ReadChannel
def afold_async[S](s0: S)(f: (S, R) => F[S]): F[S]
Inherited from
ReadChannel
def aforeach(f: R => Unit): F[Unit]
Inherited from
ReadChannel
def aforeach_async(f: R => F[Unit]): F[F[Unit]]
Inherited from
ReadChannel
def append(other: ReadChannel[F, R]): ReadChannel[F, R]
Inherited from
ReadChannel
def aread(): F[R]

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

return F which contains sequence from first n elements.

return F which contains sequence from first n elements.

Inherited from
ReadChannel
def awrite(a: W): F[Unit]
Inherited from
WriteChannel
def awriteAll(collection: IterableOnce[W]): F[Unit]
Inherited from
WriteChannel
@throws(java.io.IOException)
def close(): Unit
Inherited from
Closeable
def dup(bufSize: Int, expiration: Duration): (ReadChannel[F, R], ReadChannel[F, R])
Inherited from
ReadChannel
inline def fold[S](inline s0: S)(inline f: (S, R) => S): S
Inherited from
ReadChannel
def fold_async[S](s0: S)(f: (S, R) => F[S]): F[S]
Inherited from
ReadChannel
inline def foreach(inline f: R => 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: R => F[Unit]): F[Unit]
Inherited from
ReadChannel
inline def optRead(): Option[R]
Inherited from
ReadChannel
def or(other: ReadChannel[F, R]): ReadChannel[F, R]
Inherited from
ReadChannel
inline def read(): R
Inherited from
ReadChannel
def withWriteExpiration(ttl: FiniteDuration, throwTimeouts: Boolean)(using gopherApi: Gopher[F]): WriteChannelWithExpiration[F, W]
Inherited from
WriteChannel
inline def write(inline a: W): Unit
Inherited from
WriteChannel
inline def writeAll(inline collection: IterableOnce[W]): Unit
Inherited from
WriteChannel
def zip[B](x: ReadChannel[F, B]): ReadChannel[F, (R, B)]
Inherited from
ReadChannel
def |(other: ReadChannel[F, R]): ReadChannel[F, R]
Inherited from
ReadChannel

Inherited fields

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