Skip to content
New issue

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

feat(swift): last missing helpers #2764

Merged
merged 19 commits into from
Feb 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: improve algo
  • Loading branch information
Fluf22 committed Feb 26, 2024
commit 96d41f6d4973d085e05d7cc55f0b8a9c4eb0e08e
Original file line number Diff line number Diff line change
Expand Up @@ -373,11 +373,13 @@ public extension SearchClient {
requestOptions: requestOptions
)

if waitForTasks {
responses.append(batchResponse)
}

if waitForTasks {
for batchResponse in responses {
try await self.waitForTask(with: batchResponse.taskID, in: indexName)
}

responses.append(batchResponse)
}

return responses
Expand Down
Loading