Skip to content

Commit

Permalink
Added code to wait until all of the items are loaded before returning…
Browse files Browse the repository at this point in the history
… the list of items
  • Loading branch information
benne238 committed Jul 12, 2021
1 parent d8e722b commit 5a30f2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/webqueue2api/parser/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def __get_items(self, headers_only: bool) -> list:
valid_items.append(item)

items = multi_item_processes.starmap_async(Item, [(self.name, item, headers_only) for item in valid_items]).get()
multi_item_processes.close()
multi_item_processes.join()

return items

Expand Down

0 comments on commit 5a30f2d

Please sign in to comment.