7.2.2.2. async_thread

async_thread(sol, args, node_attr, node_id, *a, **kw)[source]

Execute sol._evaluate_node in an asynchronous thread.

Parameters:
  • sol (schedula.utils.sol.Solution) – Solution to be updated.
  • args (tuple) – Arguments to be passed to node calls.
  • node_attr (dict) – Dictionary of node attributes.
  • node_id (str) – Data or function node id.
  • a (tuple) – Extra args to invoke sol._evaluate_node.
  • kw (dict) – Extra kwargs to invoke sol._evaluate_node.
Returns:

Function result.

Return type:

concurrent.futures.Future | AsyncList