Skip to main content
View module source on GitHub

SameThreadExecutor

A mock executor that runs submitted callables on the same thread, synchronously. Mimics the interface of concurrent.futures.Executor.

get_thread_pool_executor

Get the global thread pool executor for processing.

shutdown_thread_pool_executor

Shutdown the global thread pool executor.

start_new_turn

This function will start a new turn and return the current turn. If the current turn is interrupted or empty, it will return None. If the current turn is not interrupted and not empty, it will return the current turn. If the current turn is interrupted and not empty, it will return None. If the current turn is empty, it will return None. If the current turn is not interrupted and empty, it will return None. If the current turn is interrupted and empty, it will return None. Arguments: Returns: The new turn or None if the current turn is interrupted or empty.