title: Python tqdm process_map: Append list shared between processes?
body: <p>I want to share a list to append output from parallel threads, started by <code>process_map</code> from <code>tqdm</code>. (The reason why I want to use <code>process_map</code> is the nice progress indicator and the <code>max_workers=</code> option.)</p>
  <p>I have tried to use <code>from multiprocessing import Manager</code> to create the shared list, but I am doing something wrong here: My code prints an empty <code>shared_list</code>, but it should print a list with 20 numbers, correct order is not important.</p>
  <p>Any help would be greatly appreciated, thank you in advance!</p>
  <pre><code>import time
  from tqdm.contrib.concurrent import process_map
  from multiprocessing import Manager
  
  
  shared_list = []
  
  def worker(i):
      global shared_list
      time.sleep(1)
      shared_list.append(i)
  
  if __name__ == '__main__':
      manager = Manager()
      shared_list = manager.list()
  
      process_map(worker, range(20), max_workers=5)
      print(shared_list)
  </code></pre>