Super! .. thanks Alex! On Sat, May 11, 2019 at 1:17 PM Alexander Burger <a...@software-lab.de> wrote:
> On Sat, May 11, 2019 at 12:26:30PM -0700, C K Kashyap wrote: > > I am trying to download a bunch of URLs in parallel and wait until all > the > > downloads have finished before proceeding. Calling (kill Pid 0) seems > > reasonable. > > I would use 'later' for that. It is a frontend to 'pipe'. > > You could start all downloads like this: > > (let Lst > (mapcan > '((File) > (later (cons) > (... download File ...) > T ) ) > ListOfFileNames ) > (wait NIL (full Lst)) ) # Wait until all children are done > > ☺! A!ex > > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >