title: Python-get function's return value when called using Concurrent.Futures module as ThreadPool
body: <p>I have created a ThreadPool using Concurrent.Futures module.
  I have created threads and everything worked fine.</p>
  
  <p>But now i have a function which i want to make it parallel with threads,
  the problem is i need the return value of the function each thread should run and not sure how to get it when using the futures threadPool module.
  is there a way?</p>