Skip to content

AsyncChunksOfCountSequence does not create chunks of 1 element each. #268

Closed
@knovichikhin

Description

@knovichikhin

AsyncChunksOfCountSequence does not create chunks of 1 element each. Instead it creates 1 chunk of all elements.

for await chunk in ["1", "2", "3"].async.chunks(ofCount: 1) {
    print(chunk)
}

Output:

["1", "2", "3"]

Likely due to this line not checking that result.count == count:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions