forked from celery/celery
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improv: Use single-lookahead for regen consumption
This change introduces a helper method which abstracts the logic of consuming items one by one in `regen` and also introduces a single lookahead to ensure that the `__done` property gets set even if the regen is not fully iterated, fixing an edge case where a repeatable iterator would get doubled when used as a base for a `regen` instance.
- Loading branch information
1 parent
82f76d9
commit d667f1f
Showing
3 changed files
with
106 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters