In an exception handler for a CSP style process, I need to read and discard the entire contents of a channel in order to allow other processes that are blocking to send to i
I've started using a deque that I can reuse if need be:
do_all = deque(maxlen=0).extend
Then I can consume generator expressions using:
do_all(poly.draw() for poly in model.polys)