On Tuesday, June 13, 2017 at 4:10:15 AM UTC+1, Matthieu Pizenberg wrote:
>
> On Wednesday, June 7, 2017 at 4:08:37 PM UTC+8, Rupert Smith wrote:
>>
>> On Tuesday, June 6, 2017 at 3:20:42 PM UTC+1, Rupert Smith wrote:
>>>
>>> The problem with long running computations in a single threaded UI is 
>>> that they may cause the UI to block and become unresponsive for a period. 
>>> Definitely not an acceptable user experience.
>>>
>>
> Yep, totally agree with you. I also would love to be able to run some 
> scientific computation, but the UI blocking is a stopper. 
>

But you can split the computation at some suitable point, returning a 
continuation to 'calculate the rest later', then return to your 'update' 
function and have it return a Cmd to come back in later and continue the 
work. Did you try this technique? Its not ideal, but at least it makes it 
no longer a stopper.

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