An example of a library that doesn't expose tasks is the Phoenix Socket 
library. I had a coworker ask me about sequencing joining a channel, pushing a 
message and waiting for a reply, and then leaving the channel. Without Tasks 
being exposed and without Cmd.andThen, that leaves one building the state 
sequence inside ones model which is sort of icky since most of the time it has 
no role in the model state.

Mark

> On Nov 29, 2016, at 5:18 PM, Max Goldstein <[email protected]> wrote:
> 
> Http has an escape hatch to get a Task. Other libraries should do the same. 
> 
> Cmd is deliberately simple, with the hard work being done in Task. 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to