title: How to use queue with concurrent future ThreadPoolExecutor in python 3?
body: <p>I am using simple threading modules to do concurrent jobs. Now I would like to take advantages of concurrent futures modules. Can some put me a example of using a queue with concurrent library?</p>
  
  <p>I am getting TypeError: 'Queue' object is not iterable
  I dont know how to iterate queues</p>
  
  <p>code snippet:</p>
  
  <pre><code> def run(item):
        self.__log.info(str(item))
        return True
  &lt;queue filled here&gt;
  
  with concurrent.futures.ThreadPoolExecutor(max_workers = 100) as executor:
          furtureIteams = { executor.submit(run, item): item for item in list(queue)}
          for future in concurrent.futures.as_completed(furtureIteams):
              f = furtureIteams[future]
              print(f)
  </code></pre>