I don't understand the API :(

Using Process.spawn and kill, is it possible to completely skip receiving 
the Increment message in this demo program 
<https://gist.githubusercontent.com/nikoudel/6affe7af91b84bddc3f09a40b4bf0d85/raw/0b6138913c445dda601d7a137f7c99d99168c9e1/mail.elm>
 
instead of relying on the model.canIncrement flag?

On Wednesday, June 29, 2016 at 7:26:28 AM UTC+3, Evan wrote:
>
> Process.spawn and Process.kill let you "kill tasks". Killing a process 
> that has an HTTP request pending will cancel the request as well.
>
> Interprocess communication is not ready yet, but the current API can cover 
> some use cases.
>
> On Tuesday, June 28, 2016, Mark Hamburg <[email protected] <javascript:>> 
> wrote:
>
>> I would absolutely tag the tasks. You can do this in the response action. 
>> I recommend keeping a counter in the model and advancing it whenever the 
>> basis for requests changes.
>>
>> Aborting would be ideal but it's harder or potentially impossible at 
>> present.
>>
>> Mark
>>
>> --
>> 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.
>>
>
>
> -- 
> Sent from Gmail Mobile
>

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