On Thursday, November 10, 2016 at 8:52:08 PM UTC, Max Goldstein wrote:
>
> So, I'm mostly speculating here, but could you use Task.andThen to get the 
> ID, which you then use to kill the task that updates the security token, if 
> necessary?


Tried that, but the spawn task changes the return type from 'a' to 'Id', so 
when you run it with Task.perform you only get an Id to form your Cmd with, 
not the 'a'. 

There is a note in the docs about future directions for Process. With the 
type of spawn being:

spawn : Task exit a -> Task x (Id exit Never)

So it looks like you can use the Err constructor of the task return an 
exist value. Still chucks away the 'a' though. Not sure if this is being 
worked on for the 0.18 release.
 

-- 
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