Batch

tyrian.Sub.Batch
See theBatch companion object
final case class Batch[F[_], Msg](subs: List[Sub[F, Msg]]) extends Sub[F, Msg]

Treat many subscriptions as one

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Sub[F, Msg]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def ++(other: Batch[F, Msg]): Batch[F, Msg]
def +:(sub: Sub[F, Msg]): Batch[F, Msg]
def :+(sub: Sub[F, Msg]): Batch[F, Msg]
def ::(sub: Sub[F, Msg]): Batch[F, Msg]
def map[OtherMsg](f: Msg => OtherMsg): Batch[F, OtherMsg]

Transforms the type of messages produced by the subscription

Transforms the type of messages produced by the subscription

Attributes

Inherited methods

def combine[F2[x], LubMsg >: Msg](other: Sub[F2, LubMsg]): Sub[F2, LubMsg]

Infix operation for combining two Subs into one.

Infix operation for combining two Subs into one.

Attributes

Inherited from:
Sub

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
def |+|[F2[x], LubMsg >: Msg](other: Sub[F2, LubMsg]): Sub[F2, LubMsg]

Infix operator for combining two Subs into one.

Infix operator for combining two Subs into one.

Attributes

Inherited from:
Sub