Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creating a Twisted ThreadPool
pool = ThreadPool(minthreads=1, maxthreads=1, name='db-ops')
pool.start()
reactor.addSystemEventTrigger('after', 'shutdown', pool.stop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment