Fork me on GitHub
#core-async
<
2021-12-21
>
NoahTheDuke19:12:13

if I use a channel as a queue and have a go-loop call a function on input from <! , am i guaranteed that the called function will return before go-loop loops and calls the function again?

noisesmith20:12:31

yes, function calls inside go-loop block

👍 1
NoahTheDuke20:12:08

excellent, thank you

noisesmith20:12:58

(and this is why long-running functions inside go blocks should use async/thread - otherwise you can use up the core.async thread pool)

NoahTheDuke20:12:09

yeah, that makes sense