Composing a Task with a function that returns a Cmd

Note that there are drawbacks to storing functions in your Msg type (same problems also apply to the Model type) Implications of storing functions in model or msg type

2 Likes