PromiseChannel

class PromiseChannel[F[_], A](val gopherApi: JVMGopher[F], taskExecutor: ExecutorService) extends Channel[F, A, A]

Channel is closed immediatly after successfull write.

Channel is closed immediatly after successfull write.

trait Channel[F, A, A]
trait Closeable
trait AutoCloseable
trait ReadChannel[F, A]
trait WriteChannel[F, A]
class Object
trait Matchable
class Any

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

Concrete methods

def addDoneReader(reader: Reader[Unit]): Unit
def addReader(reader: Reader[A]): Unit
def addWriter(writer: Writer[A]): Unit
def close(): Unit
def closeAll(): Unit
def isClosed: Boolean
def step(): Unit

Inherited methods

@targetName("write2")
inline def !(inline a: A): Unit
Inherited from
WriteChannel
@targetName("write1")
inline def <~(inline a: A): Unit
Inherited from
WriteChannel
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 awrite(a: A): F[Unit]
Inherited from
WriteChannel
def awriteAll(collection: IterableOnce[A]): F[Unit]
Inherited from
WriteChannel
def dup(bufSize: Int, expiration: Duration): (ReadChannel[F, A], ReadChannel[F, A])
Inherited from
ReadChannel
override def filter(p: A => Boolean): Channel[F, A, A]
Definition Classes
Inherited from
Channel
override def filterAsync(p: A => F[Boolean]): Channel[F, A, A]
Definition Classes
Inherited from
Channel
def flatMap[R1](f: A => ReadChannel[F, R1]): Channel[F, A, R1]
Inherited from
Channel
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
override def map[R1](f: A => R1): Channel[F, A, R1]
Definition Classes
Inherited from
Channel
override def mapAsync[R1](f: A => F[R1]): Channel[F, A, R1]
Definition Classes
Inherited from
Channel
inline def optRead(): Option[A]
Inherited from
ReadChannel
def or(other: ReadChannel[F, A]): ReadChannel[F, A]
Inherited from
ReadChannel
inline def read(): A
Inherited from
ReadChannel
def withExpiration(ttl: FiniteDuration, throwTimeouts: Boolean): ChannelWithExpiration[F, A, A]
Inherited from
Channel
def withWriteExpiration(ttl: FiniteDuration, throwTimeouts: Boolean)(using gopherApi: Gopher[F]): WriteChannelWithExpiration[F, A]
Inherited from
WriteChannel
inline def write(inline a: A): Unit
Inherited from
WriteChannel
inline def writeAll(inline collection: IterableOnce[A]): Unit
Inherited from
WriteChannel
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

override val gopherApi: JVMGopher[F]

Inherited fields

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