done() Return True if the call was successfully cancelled or finished running.
threading.stack_size([size]) Return the thread stack size used when creating new threads. The optional size argument
threading.current_thread() Return the current Thread object, corresponding to the caller’s thread of control. If
set() Set the internal flag to true. All threads waiting for it to become true are awakened. Threads that call wait()
empty() Return True if the queue is empty, False otherwise. Because of multithreading/multiprocessing
Queue.task_done() Indicate that a formerly enqueued task is complete. Used by queue consumer threads. For each get()
reset() Return the barrier to the default, empty state. Any threads waiting on it will receive the BrokenBarrierError
class threading.Barrier(parties, action=None, timeout=None) Create a barrier object for parties number of threads.
close() Close the connection. This is called automatically when the connection is garbage collected
Semaphore([value]) Create a shared
Page 20 of 29