@@ -594,17 +594,17 @@ public List<BatchResponse> DeleteObjects(string indexName, IEnumerable<String> o
594594 AsyncHelper . RunSync ( ( ) => DeleteObjectsAsync ( indexName , objectIDs , waitForTasks , options , cancellationToken ) ) ;
595595
596596 /// <inheritdoc/>
597- public async Task < List < BatchResponse > > PartialUpdateObjectsAsync < T > ( string indexName , IEnumerable < T > objects , bool createIfNotExists ,
597+ public async Task < List < BatchResponse > > PartialUpdateObjectsAsync < T > ( string indexName , IEnumerable < T > objects , bool createIfNotExists , bool waitForTasks = false ,
598598 RequestOptions options = null ,
599599 CancellationToken cancellationToken = default ) where T : class
600600 {
601- return await ChunkedBatchAsync ( indexName , objects , createIfNotExists ? Action . PartialUpdateObject : Action . PartialUpdateObjectNoCreate , false , 1000 , options , cancellationToken ) . ConfigureAwait ( false ) ;
601+ return await ChunkedBatchAsync ( indexName , objects , createIfNotExists ? Action . PartialUpdateObject : Action . PartialUpdateObjectNoCreate , waitForTasks , 1000 , options , cancellationToken ) . ConfigureAwait ( false ) ;
602602 }
603603
604604 /// <inheritdoc/>
605- public List < BatchResponse > PartialUpdateObjects < T > ( string indexName , IEnumerable < T > objects , bool createIfNotExists ,
605+ public List < BatchResponse > PartialUpdateObjects < T > ( string indexName , IEnumerable < T > objects , bool createIfNotExists , bool waitForTasks = false ,
606606 RequestOptions options = null , CancellationToken cancellationToken = default ) where T : class =>
607- AsyncHelper . RunSync ( ( ) => PartialUpdateObjectsAsync ( indexName , objects , createIfNotExists , options , cancellationToken ) ) ;
607+ AsyncHelper . RunSync ( ( ) => PartialUpdateObjectsAsync ( indexName , objects , createIfNotExists , waitForTasks , options , cancellationToken ) ) ;
608608
609609 private static async Task < List < TU > > CreateIterable < TU > ( Func < TU , Task < TU > > executeQuery ,
610610 Func < TU , bool > stopCondition )
0 commit comments