emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] automatically retrying network connections


From: Lars Ingebrigtsen
Subject: Re: [RFC] automatically retrying network connections
Date: Sun, 22 Jul 2018 12:28:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Jimmy Yuen Ho Wong <address@hidden> writes:

> I'm currently using generators to alleviate UI blocking a bit, but I
> haven't found a good answer to making async network processes and then
> joining their results later. (short of writing a giant block of
> callback spagetti anyway...)

You want to do a bunch of async HTTP calls, and when they're all
complete (including possibly some tryLaters), then you finish the entire
thing?  I don't really see the problem...  can't you just create a queue
(a la url-queue), or if you want to do all the calls in parallel, just
create a structure all the threads fill in and the last one that
finishes does the "complete" action?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]