FilteredAsyncChannel

class FilteredAsyncChannel[F[_], W, R](internal: Channel[F, W, R], p: R => F[Boolean]) extends FilteredAsyncReadChannel[F, R] with Channel[F, W, R]
trait Channel[F, W, R]
trait Closeable
trait AutoCloseable
trait WriteChannel[F, W]
trait ReadChannel[F, R]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

Inherited from
ReadChannel
class FilteredReader(nested: Reader[A])
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

Concrete methods

override def addWriter(writer: Writer[W]): Unit
Definition Classes
override def close(): Unit
Definition Classes
Closeable -> AutoCloseable
override def isClosed: Boolean
Definition Classes

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
def addReader(reader: Reader[R]): Unit
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
def dup(bufSize: Int, expiration: Duration): (ReadChannel[F, R], ReadChannel[F, R])
Inherited from
ReadChannel
override def filter(p: R => Boolean): Channel[F, W, R]
Definition Classes
Inherited from
Channel
override def filterAsync(p: R => F[Boolean]): Channel[F, W, R]
Definition Classes
Inherited from
Channel
def flatMap[R1](f: R => ReadChannel[F, R1]): Channel[F, W, R1]
Inherited from
Channel
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
override def map[R1](f: R => R1): Channel[F, W, R1]
Definition Classes
Inherited from
Channel
override def mapAsync[R1](f: R => F[R1]): Channel[F, W, R1]
Definition Classes
Inherited from
Channel
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 withExpiration(ttl: FiniteDuration, throwTimeouts: Boolean): ChannelWithExpiration[F, W, R]
Inherited from
Channel
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