Thank you for the comprehensive response ! I had wrongly assumed that the 
explicit capture is not needed because the code worked without it, if put 
outside proc. But since it didn't work with code in the proc, I should have 
thought something needs to be done different.

The workflow here is simple. Retrieve a html page with a certain key passed in 
the URL, parse the html to find a certain string, put the string in an sqlite 
database. The limit here is the connection/http latency. The other parts are 
super fast.

I don't think async can be used here, unless I simulated some kind of thread 
pool to manage the number of parallel jobs, which defeats the purpose I think. 
I also do not know how to work with sync/spawn. This library was recommended 
when I asked in the community chat. I now understand it is overkill for my 
needs, as in, I do not use/need any of its fancy features, but then again, the 
parallelFor was simple enough to use, vs learning the others.

Reply via email to