Re: DFL background tasks

2015-06-10 Thread Scroph via Digitalmars-d-learn
Briliant, thanks a lot ! Looks like I misunderstood Adam's reply, sorry about that ! I tried different things but I didn't think of calling invoke from within the worker thread, that solved the freezing problem. I ended up using the Thread class; spawn complained about the mutability of the

Re: DFL background tasks

2015-06-10 Thread thedeemon via Digitalmars-d-learn
On Wednesday, 10 June 2015 at 22:18:21 UTC, Scroph wrote: client.perform; while(!client.isStopped) I don't think this will work as you expect. perform is a synchronous call, it will not return until the download finishes, as I understand, so your while loop is too late. I