Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 383 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 383 Bytes

threadpool

A simple python threadpool implementation for 2.4+ that can handle KeyboardInterrupt

example

import threadpool

pool = threadpool.ThreadPool(5)
for i in range(10):
	pool.add_task(do_something, [i])

pool.start()
pool.join()

A more complete example can be found in the module itself, you can use it by running python threadpool.py