For shutdown, in this case you can use the "poison...
# coroutines
m
For shutdown, in this case you can use the "poison pill" approach -- an empty list will work nicely if you're doing hte list thing. Call
shutdown()
on the executor, insert <number of threads> empty lists, and have the loops detect an empty list and exit.