Classes | |
class | _LoggingPool |
Functions | |
def | _wrap (behavior) |
def | pool (max_workers) |
Variables | |
_LOGGER = logging.getLogger(__name__) | |
|
private |
Wraps an arbitrary callable behavior in exception-logging.
Definition at line 22 of file logging_pool.py.
def grpc.framework.foundation.logging_pool.pool | ( | max_workers | ) |
Creates a thread pool that logs exceptions raised by the tasks within it. Args: max_workers: The maximum number of worker threads to allow the pool. Returns: A futures.ThreadPoolExecutor-compatible thread pool that logs exceptions raised by the tasks executed within it.
Definition at line 61 of file logging_pool.py.
|
private |
Definition at line 19 of file logging_pool.py.