graphragzen.async_tools.async_tools.async_loop
- async graphragzen.async_tools.async_tools.async_loop(func, items, loop_description='', *args, **kwargs)[source]
Call a function for each item in items asynchronously
note that *args and **kwargs to add to the func call can be supplied after the input specified below.
- Parameters:
func (Callable) – Function to call
items (list) – List of items for which to call func individually
loop_description (str, optional) – Description of the loop, used for tqdm. Defaults to “”.
args (Any)
kwargs (Any)
- Returns:
_description_
- Return type:
_type_