Skip to content

Clarify docs on checkpoints in async iterators #2388

Description

@Zac-HD

* This includes async iterators: If you write ``async for ... in <a
trio object>``, then there will be at least one checkpoint before
each iteration of the loop and one checkpoint after the last
iteration.

Does this mean exactly one checkpoint after the last iteration, or at least one? I'm pretty sure it's the latter but that's not entirely obvious from reading, and adding one of those specifiers would remove any doubt🙂

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions