title: How to print results of Python ThreadPoolExecutor.map immediately?
body: <p>I am running a function for several sets of iterables, returning a list of all results as soon as all processes are finished.</p>
  
  <pre><code>def fct(variable1, variable2):
  
     # do an operation that does not necessarily take the same amount of
     # time for different input variables and yields result1 and result2
  
     return result1, result2
  
  variables1 = [1,2,3,4]
  variables2 = [7,8,9,0]
  
  with ThreadPoolExecutor(max_workers = 8) as executor:
      future = executor.map(fct,variables1,variables2)
      print '[%s]' % ', '.join(map(str, future))
  </code></pre>
  
  <hr>
  
  <pre><code>&gt;&gt;&gt; [ (12,3) , (13,4) , (14,5) , (15,6) ]
  </code></pre>
  
  <p>How can I print intermediary results e.g. for variable1 = 1, variable2 = 7 as soon as their results are calculated?</p>