Batch

final case class Batch[F[_], Msg](subs: List[Sub[F, Msg]]) extends Sub[F, Msg]

Treat many subscriptions as one

Companion:
object
trait Serializable
trait Product
trait Equals
trait Sub[F, Msg]
class Object
trait Matchable
class Any

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

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.

Inherited from:
Sub
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.

Inherited from:
Sub