Fork me on GitHub

Hey guys, quick question. Does anybody has experience using halt-when on channels? I haven't been able to find any examples of it :(


@carocad I've never used it, but was able to do this based on the docs - the channel closes when the input matches the predicate


@carocad - I just updated the paste to also use the optional retf arg - seems like it gets the buffer of the channel as the first arg, and the value that was rejected as the second


@noisesmith that is great ! Thanks for the gist. I will test this when I have the chance but I think that your input was more than sufficient 🙂