parameters: (paths)
docstring: Run _CheckPath over mutltiple processes.
  
    Tokenization, passes, and checks are expensive operations.  Running in a
    single process, they can only run on one CPU/core.  Instead,
    shard out linting over all CPUs with multiprocessing to parallelize.
  
    Args:
      paths: paths to check.
  
    Yields:
      errorrecord.ErrorRecords for any found errors.
docstring_summary: Run _CheckPath over mutltiple processes.
docstring_tokens: Run _CheckPath over mutltiple processes .
function: def _MultiprocessCheckPaths(paths):
    """Run _CheckPath over mutltiple processes.
  
    Tokenization, passes, and checks are expensive operations.  Running in a
    single process, they can only run on one CPU/core.  Instead,
    shard out linting over all CPUs with multiprocessing to parallelize.
  
    Args:
      paths: paths to check.
  
    Yields:
      errorrecord.ErrorRecords for any found errors.
    """
  
    pool = multiprocessing.Pool()
  
    for results in pool.imap(_CheckPath, paths):
      for record in results:
        yield record
  
    pool.close()
    pool.join()
function_tokens: def _MultiprocessCheckPaths ( paths ) : pool = multiprocessing . Pool ( ) for results in pool . imap ( _CheckPath , paths ) : for record in results : yield record pool . close ( ) pool . join ( )