Poison pill


#1

Originally published at: https://purelyfunctional.tv/core-async-patterns/poison-pill/
If you need finer control over which workers die, you could implement the poison pill pattern. In this one, a special value is considered to be a signal to die.