ReadChannel

gopher.ReadChannel
See theReadChannel companion trait
object ReadChannel

Attributes

Companion
trait
Source
ReadChannel.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def always[F[_], A](a: A)(using Gopher[F]): ReadChannel[F, A]

Value parameters

a
  • value to produce

Attributes

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]

Attributes

Source
ReadChannel.scala
def fromFuture[F[_], A](f: F[A])(using Gopher[F]): ReadChannel[F, A]

Attributes

Source
ReadChannel.scala
def fromIterable[F[_], A](c: IterableOnce[A])(using Gopher[F]): ReadChannel[F, A]

Value parameters

c
  • iteratable to read from.

Attributes

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]

Attributes

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

Attributes

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]

Attributes

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

Attributes

Source
ReadChannel.scala

Givens

Givens

given emitAbsorber[F[_], C <: CpsMonadContext[F], T](using auxMonad: CpsSchedulingMonad[F] { type Context = C; }, gopherApi: Gopher[F]): emitAbsorber[F, C, T]

Attributes

Source
ReadChannel.scala