Skip to content

Add an asynchronous itertools implementation #998

Closed

Description

@agronholm

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

This would add an async counterpart for the itertools standard library module.

Use case

The need to iterate over async iterables is a fairly common one, and this is why aioitertools exists.

Activity

  1. added
    enhancement
    on Oct 8, 2025
  2. changed the title [-]Add asynchronous itertools implementation[/-] [+]Add an asynchronous itertools implementation[/+] on Oct 8, 2025
  3. added a commit that references this issue on Apr 6, 2026
  4. 11kkw commented on Apr 6, 2026

    @11kkw
    Contributor

    I've been experimenting with an async counterpart to several itertools functions.

    Before opening a PR, I'd like to check if the implementation direction makes
    sense for AnyIO. If not, I'm happy to revise the implementation.

    Any feedback would be appreciated.

  5. agronholm commented on Apr 6, 2026

    @agronholm
    OwnerAuthor

    OK, which repo should I be looking at?

  6. 11kkw commented on Apr 6, 2026

    @11kkw
    Contributor

    OK, which repo should I be looking at?

    You can take a look here:

    https://github.com/11kkw/anyio/tree/feature/async-itertools-998

  7. agronholm commented on Apr 6, 2026

    @agronholm
    OwnerAuthor

    It will take a while to get through this, but a couple things caught my eye:

  8. agronholm commented on Apr 6, 2026

    @agronholm
    OwnerAuthor

    Overall I think this looks good. There will probably be a few more change requests, but I see no problem with sending a PR.

  9. 11kkw commented on Apr 6, 2026

    @11kkw
    Contributor

    Overall I think this looks good. There will probably be a few more change requests, but I see no problem with sending a PR.

    You're right, that was a mistake. I'll fix it and open a PR. Thanks for reviewing.

  10. added a commit that references this issue on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions