executorlib.standalone.select.get_item_from_future

executorlib.standalone.select.get_item_from_future#

executorlib.standalone.select.get_item_from_future(future: Future, key: str) FutureSelector[source]#

Get item from concurrent.futures.Future object which returns a dictionary as result by the corresponding dictionary key.

Parameters:
  • future (Future) – future object which returns a dictionary as result

  • key (str) – dictionary key to get item from dictionary

Returns:

Future object which returns the value corresponding to the key

Return type:

FutureSelector