Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor JobCollection #17

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

UlrichEckhardt
Copy link
Contributor

  • Make the collection itself iterable.
  • In methods that took a JobCollection as parameter, use a more liberal Traversable<Job> instead. This allows using other, compatible types as well, in particular generators.

This allows using it in a simple `foreach` loop. Also, add a missing
`void` return type annotation.
…e interface

Instead, allow any iterator over a sequence of `Job`, which makes this
a bit more flexible. In particular, it allows use of a `Generator`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant