ReadChannel

Companion
class
Source
ReadChannel.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def always[F[_], A](a: A)(using Gopher[F]): ReadChannel[F, A]
Value Params
a
  • value to produce
Returns

channel which emit value of a in loop and never close

Source
ReadChannel.scala
def empty[F[_], A](using Gopher[F]): ReadChannel[F, A]
def fromFuture[F[_], A](f: F[A])(using Gopher[F]): ReadChannel[F, A]
def fromIterable[F[_], A](c: IterableOnce[A])(using Gopher[F]): ReadChannel[F, A]
Value Params
c
  • iteratable to read from.
Returns

channel, which will emit all elements from 'c' and then close.

Source
ReadChannel.scala
def fromValues[F[_], A](values: A*)(using Gopher[F]): ReadChannel[F, A]
def once[F[_], A](a: A)(using Gopher[F]): ReadChannel[F, A]
Returns

one copy of a and close.

Source
ReadChannel.scala
def unfold[S, F[_], A](s: S)(f: S => Option[(A, S)])(using Gopher[F]): ReadChannel[F, A]
def unfoldAsync[S, F[_], A](s: S)(f: S => F[Option[(A, S)]])(using Gopher[F]): ReadChannel[F, A]

Givens

Givens

given emitAbsorber[F[_], T](implicit evidence$1: CpsSchedulingMonad[F], val gopherApi: Gopher[F]): BaseUnfoldCpsAsyncEmitAbsorber[ReadChannel[F, T], F, T]