Kill switch


#1

Originally published at: https://purelyfunctional.tv/core-async-patterns/kill-switch/
On the JVM, there is no way to stop a thread from the outside. The same is true of core.async go processes. The only way to stop it is from the inside. A common way to kill multiple threads/go processes is to make a channel signal that they should die.