Skip to content

Conversation

@jkmassel
Copy link
Contributor

Adds basic Swift auto-pagination based on #375 and #376.

To Test:

@jkmassel jkmassel self-assigned this Nov 12, 2024
@jkmassel jkmassel added the Swift label Nov 12, 2024
@jkmassel jkmassel force-pushed the add/swift-pagination branch from b9cfa90 to 063fb14 Compare November 12, 2024 21:42
while let nextPageParams = workingResponse.nextPageParams {
workingResponse = try await self.listWithEditContext(params: nextPageParams)
allObjects.append(contentsOf: workingResponse.data)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: using do-while to avoid duplicating listWithEditContext and appending(contentsOf:...) calls.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that is nicer. Done in 098c1e8.

@jkmassel jkmassel enabled auto-merge (squash) November 13, 2024 22:41
@jkmassel jkmassel merged commit 28b8abe into trunk Nov 13, 2024
19 of 22 checks passed
@jkmassel jkmassel deleted the add/swift-pagination branch November 13, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants