Platform.Sub
Processes
Subscriptions a program re-reads after every update.
Types
Sub
type Sub msg = SubA subscription that can deliver messages to a program.
Examples
Sub.noneValues
none
none : Sub msgA subscription that delivers nothing.
Examples
Sub.nonebatch
batch : List (Sub msg) -> Sub msgListen to several subscriptions.
Examples
Sub.batch [ Time.every 1000 Tick, Process.listen name Got ]map
map : (a -> msg) -> Sub a -> Sub msgTag the messages a subscription produces.
Examples
Sub.map ChildMsg childSub