cps.stream

package cps.stream

Members list

Type members

Classlikes

trait AsyncIterator[F[_], T]

Minimal mutable async stream.

Minimal mutable async stream.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Self type
object AsyncIterator

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
class AsyncIteratorEmitAbsorber[F[_], C <: CpsMonadContext[F], T](using ec: ExecutionContext, auxAsyncMonad: Aux[F, C]) extends CpsAsyncEmitAbsorber4[AsyncIterator[F, T], F, C, T]

Attributes

Supertypes
trait CpsAsyncEmitAbsorber4[AsyncIterator[F, T], F, C, T]
class Object
trait Matchable
class Any
sealed trait AsyncList[F[_], +T]

Mininal async stream.

Mininal async stream.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Cons[F, T]
class Empty[F]
class Wait[F, T]
object AsyncList

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
AsyncList.type
class AsyncListEmitAbsorber[F[_], C <: CpsMonadContext[F], T](using ec: ExecutionContext, auxMonad: Aux[F, C]) extends BaseUnfoldCpsAsyncEmitAbsorber[AsyncList[F, T], F, C, T]

Attributes

Supertypes
trait BaseUnfoldCpsAsyncEmitAbsorber[AsyncList[F, T], F, C, T]
trait CpsAsyncEmitAbsorber4[AsyncList[F, T], F, C, T]
class Object
trait Matchable
class Any
Show all
class AsyncStreamHelper[R, F[_], C <: CpsMonadContext[F], A](val a: Aux[R, F, C, A])

Attributes

Supertypes
class Object
trait Matchable
class Any

This typeclass should be implemented for streams, which can be a target of asyncStream. i.e. if we want use generator of form

This typeclass should be implemented for streams, which can be a target of asyncStream. i.e. if we want use generator of form

asyncStream[R] { out =>
   ...
   out.emit(value)
}

Then we should have an implementation of given CpsAsyncEmitAbsorber[R] in the current scope.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait CpsAsyncEmitAbsorber4[R, F, C, T]
class AsyncIteratorEmitAbsorber[F, C, T]

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
trait CpsAsyncEmitAbsorber4[R, F[_], C <: CpsMonadContext[F], T](using val auxAsyncMonad: Aux[F, C]) extends CpsAsyncEmitAbsorber[R]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AsyncIteratorEmitAbsorber[F, C, T]
trait CpsAsyncEmitter[F[_], E]

Emitter which should be a parameter of asyncStream expression.

Emitter which should be a parameter of asyncStream expression.

 asyncStream[AsyncList[F,Int]] { out =>
    for(i <- 1 to 10)
       out.emit(i)
 }

Here out have a CpsAsyncEmitter[AsyncList[F,Int],F,E] type.

Attributes

See also

[cps. asyncStream]

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type