Classes | Functions | Variables
grpc.framework.foundation.logging_pool Namespace Reference

Classes

class  _LoggingPool
 

Functions

def _wrap (behavior)
 
def pool (max_workers)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 

Function Documentation

◆ _wrap()

def grpc.framework.foundation.logging_pool._wrap (   behavior)
private
Wraps an arbitrary callable behavior in exception-logging.

Definition at line 22 of file logging_pool.py.

◆ pool()

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.

Variable Documentation

◆ _LOGGER

grpc.framework.foundation.logging_pool._LOGGER = logging.getLogger(__name__)
private

Definition at line 19 of file logging_pool.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:32