Platform.Cmd

Processes

Commands a program performs after init or update.

Types

Cmd

type Cmd msg = Cmd

A command for the program runtime.

Examples

Cmd.none

Values

none

none : Cmd msg

A command that does nothing.

Examples

Cmd.none

batch

batch : List (Cmd msg) -> Cmd msg

Run several commands.

Examples

Cmd.batch [ fetchUser, saveDraft ]

map

map : (a -> msg) -> Cmd a -> Cmd msg

Tag the messages a command produces.

Examples

Cmd.map ChildMsg childCmd