Fork me on GitHub
Noah Bogart19: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?


yes, function calls inside go-loop block

👍 1
Noah Bogart20:12:08

excellent, thank you


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

Noah Bogart20:12:09

yeah, that makes sense