示例#1
0
def test_stop_stops_all_workers(pool: ThreadPool):
    pool.stop()
    for w in pool.workers:
        w.join()
示例#2
0
def pool():
    p = ThreadPool(num_workers=4)
    yield p
    p.stop()