Skip to content

Commit 4bb3015

Browse files
committed
Add docstring
1 parent 85ea719 commit 4bb3015

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/executorlib/standalone/interactive/arguments.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ def find_future_in_list(lst):
3232

3333

3434
def check_list_of_futures_is_done(future_lst: list[Future]) -> bool:
35+
"""
36+
Check if all future objects in the list of future objects are done
37+
38+
Args:
39+
future_lst (list): list of future objects
40+
41+
Returns:
42+
bool: True if all future objects in the list of future objects are done, False otherwise
43+
"""
3544
return len([future for future in future_lst if future.done()]) == len(future_lst)
3645

3746

0 commit comments

Comments
 (0)