Fork me on GitHub
#core-async
<
2020-01-08
>
hiredman05:01:00

You are starting a new pipeline async every loop iteration which is almost certainly not what you want

hiredman05:01:43

And I bet the implementation of fetch-url-async-fn is bad

hiredman05:01:56

My guess is your fetch-url-async-fn is doing some blocking operations on the async threadpool, which is clogging it up when you spin new pipelines up on every loop iteration

hiredman05:01:04

The solution to the loop thing is to move the let of the result of calling foo out of the loop so you only call foo once

hiredman05:01:50

(the other thing is a wild guess since the source for fetch-url-async is not included)

ag05:01:49

I found the issue. I just needed to call the function outside of the block. I’m stupid