org.specs2.control.producer

Members list

Type members

Classlikes

case class Done[F[_], A]() extends LazyList[F, A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LazyList[F, A]
class Object
trait Matchable
class Any
Show all
sealed trait LazyList[F[_], A]

ADT for streaming data with a Producer. It is either:

ADT for streaming data with a Producer. It is either:

  • Done: nothing left to stream
  • One: there is just one element
  • More(as, next): there are as elements and the next producer

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Done[F, A]
class More[F, A]
class One[F, A]
case class More[F[_], A](as: List[A], next: Producer[F, A]) extends LazyList[F, A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LazyList[F, A]
class Object
trait Matchable
class Any
Show all
case class One[F[_], A](a: A) extends LazyList[F, A]

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait LazyList[F, A]
class Object
trait Matchable
class Any
Show all
case class Producer[F[_], A](run: F[LazyList[F, A]])(using evidence$1: Monad[F], evidence$2: Safe[F])

Simple streaming data structure for elements of type A and effects F

Simple streaming data structure for elements of type A and effects F

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Producer extends Producers

List of common producers

List of common producers

Attributes

Companion
class
Supertypes
trait Producers
class Object
trait Matchable
class Any
Self type
Producer.type
trait Producers

List of common producers or functions creating producers

List of common producers or functions creating producers

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Producer
object Producers
object Producers extends Producers

Attributes

Companion
trait
Supertypes
trait Producers
class Object
trait Matchable
class Any
Self type
Producers.type

Types

type AsyncStream[A] = Producer[Action, A]

Producer with async actions

Producer with async actions

Attributes

type AsyncTransducer[A, B] = (Action, A) => B

Transducer with async actions

Transducer with async actions

Attributes

type Transducer[F[_], A, B] = (Producer[F, A]) => Producer[F, B]

Transformation of a Producer into another one: after filtering, mapping, etc...

Transformation of a Producer into another one: after filtering, mapping, etc...

Attributes