core-async

vlaaad 2022-10-20T12:39:22.194529Z

What’s more idiomatic with core-async? 1. keeping track of open channels and making sure to close all of them when we are done with them 2. not closing channels at all when we are done with them and instead relying on them being garbage collected, and if some underlying data source still produces data for a while after we closed it, inputs will just get parked and eventually will be GC’d

ghadi 2022-10-20T12:57:23.317479Z

I usually close from the producer side and let the closes cascade downstream

👍 3
ghadi 2022-10-20T12:58:25.480349Z

lots of core.async "mini-processes" will close their downstream when their upstream closes (see the close? option on a lot of fns)