We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
AsyncChunksOfCountSequence
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
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:
result.count == count
swift-async-algorithms/Sources/AsyncAlgorithms/AsyncChunksOfCountSequence.swift
Line 55 in b339466
The text was updated successfully, but these errors were encountered:
This PR should fix it: #293
Sorry, something went wrong.
No branches or pull requests
AsyncChunksOfCountSequence
does not create chunks of 1 element each. Instead it creates 1 chunk of all elements.Output:
Likely due to this line not checking that
result.count == count
:swift-async-algorithms/Sources/AsyncAlgorithms/AsyncChunksOfCountSequence.swift
Line 55 in b339466
The text was updated successfully, but these errors were encountered: