Fork me on GitHub
#core-async
<
2021-08-19
>
Ben Sless14:08:45

Is it possible to add my own terminator to the core.async terminators?

ghadi14:08:25

what "terminator" are you referring to?

Ben Sless05:08:45

Like alts! inside go blocks

Ben Sless05:08:47

clojure.core.async.impl.ioc-macros/async-custom-terminators

ghadi13:08:25

impl really means impl

ghadi13:08:10

having written a bunch of that code back in the day, I can't in good conscience suggest anyone extend it

ghadi13:08:19

the terminator notion is from LLVM, meaning the final instruction in a basic block

Ben Sless10:08:26

I know impl means what it says on the tin. I'm missing something slightly lower level.

Ben Sless10:08:43

The root of the problem is that the limit for takes and puts leaks a lot

Ben Sless10:08:15

So if for example I want to create a pipeline element similar to pipeline-async which does not maintain order I have to take lots of care to not create a situation where I have a bunch of puts/takes on one channel