Cmd

object Cmd
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Cmd.type

Type members

Classlikes

case class Batch[F[_], Msg](cmds: List[Cmd[F, Msg]]) extends Cmd[F, Msg]

Treat many commands as one

Treat many commands as one

Companion:
object
object Batch
Companion:
class
case class Combine[F[_], Msg](cmd1: Cmd[F, Msg], cmd2: Cmd[F, Msg]) extends Cmd[F, Msg]

Merge two commands into a single one

Merge two commands into a single one

final case class Emit[Msg](msg: Msg) extends Cmd[Nothing, Msg]

Simply produces a message that will then be actioned.

Simply produces a message that will then be actioned.

case object None extends Cmd[Nothing, Nothing]

The empty command represents the absence of any command to perform

The empty command represents the absence of any command to perform

final case class Run[F[_], A, Msg](task: F[A], toMsg: A => Msg) extends Cmd[F, Msg]

Represents runnable concurrent task that produces a message

Represents runnable concurrent task that produces a message

Companion:
object
object Run
Companion:
class
final case class SideEffect[F[_]](task: F[Unit]) extends Cmd[F, Nothing]

Runs a task that produces no message

Runs a task that produces no message

Companion:
object
object SideEffect
Companion:
class

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def combineAll[F[_], A](list: List[Cmd[F, A]]): Cmd[F, A]
def emit[Msg](msg: Msg): Cmd[Nothing, Msg]
def emitAfterDelay[F[_] : Temporal, Msg](msg: Msg, delay: FiniteDuration): Cmd[F, Msg]
final def merge[F[_], Msg, LubMsg >: Msg](a: Cmd[F, Msg], b: Cmd[F, LubMsg]): Cmd[F, LubMsg]

Givens

Givens

given given_CanEqual_Cmd_Cmd: CanEqual[Cmd[_[_], _], Cmd[_[_], _]]
given given_Monoid_Cmd[F[_], Msg]: Monoid[Cmd[F, Msg]]