+ def shutdown(self):
"""Cause the reactor thread to exit gracefully.
+ shutdown_threadpool -- If True, and Reactor is using a ThreadPool, then
+ shutdown the ThreadPool. Set this to false if
+ the ThreadPool instance is still in use outside
+ True if shutdown, False if Reactor not started.
#print "thread is not started"
# Shutdown threadpool after reactor main thread has exited to ensure no
# more tasks are submitted to the thread pool.
- if self._thread_pool is not None:
+ if self._thread_pool is not None:
"""Return number of items in the message queue."""