Skip to content

Commit 5d6164d

Browse files
committed
fix: csharp
1 parent 66b3846 commit 5d6164d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Utils/SearchClientExtensions.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,12 @@ public partial interface ISearchClient
192192
/// <param name="indexName">The index in which to perform the request.</param>
193193
/// <param name="objects">The list of `objects` to update in the given Algolia `indexName`.</param>
194194
/// <param name="createIfNotExists">To be provided if non-existing objects are passed, otherwise, the call will fail.</param>
195+
/// <param name="waitForTasks">Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable..</param>
195196
/// <param name="options">Add extra http header or query parameters to Algolia.</param>
196197
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
197-
Task<List<BatchResponse>> PartialUpdateObjectsAsync<T>(string indexName, IEnumerable<T> objects, bool createIfNotExists, RequestOptions options = null, CancellationToken cancellationToken = default) where T : class;
198+
Task<List<BatchResponse>> PartialUpdateObjectsAsync<T>(string indexName, IEnumerable<T> objects, bool createIfNotExists, bool waitForTasks = false, RequestOptions options = null, CancellationToken cancellationToken = default) where T : class;
198199
/// <inheritdoc cref="PartialUpdateObjectsAsync{T}(string, IEnumerable{T}, bool, RequestOptions, CancellationToken)"/>
199-
List<BatchResponse> PartialUpdateObjects<T>(string indexName, IEnumerable<T> objects, bool createIfNotExists, RequestOptions options = null, CancellationToken cancellationToken = default) where T : class;
200+
List<BatchResponse> PartialUpdateObjects<T>(string indexName, IEnumerable<T> objects, bool createIfNotExists, bool waitForTasks = false, RequestOptions options = null, CancellationToken cancellationToken = default) where T : class;
200201

201202
/// <summary>
202203
/// Helper: Check if an index exists.

0 commit comments

Comments
 (0)