ReadChannel

object ReadChannel
Companion
class
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

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.

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.

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]