Feature Request: iterate over a group as actors complete
Aperta
enhancement
help wanted
- Lingua principale
- Python
- Stelle
- 5.3k
- Fork
- 383
- Merge medio
- 9h 41m
- PR unite (30g)
- 2
Descrizione
`concurrent.futures` (and probably other Python stdlib stuff) has the idea of iterating over results from concurrent processing as they are completed:
https://docs.python.org/3/library/concurrent.futures.html#concurrent.futures.as_completed
I'm currently using the `Group.get_results()` method to iterate over a group of results, but it would be nice to be able to do that as the results come back instead of in the order they were queued. That way, if I have a network request hang at the very beginning, I can get other work done while that action times out and is retried.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.