title: How map a collection and single value to function
body: <p>I have a function invoke_query that takes two arguments (connection (object) and sql_query (string)).  I have a set of queries in a collection  queries = ["queryA", "queryB"].  I want to pass the connection object and each item in queries collection to the function invoke_query.  Is this possible or am i going about it wrong?</p>
  
  <pre><code>connector = handlers.helpers.sf_connector.SF_CONNECTOR().get_connector(str(Schemas.PRIVATE))
  
  queries = ["create table A...", "create table B..."]
  
  with ThreadPoolExecutor() as executor:
      results = executor.map(invoke_query, connector, queries)
  
  def invoke_query(connection, sql):
      cursor = connection.cursor()
      cursor.execute(sql)
  </code></pre>