Wait for a task to complete to ensure synchronized index updates.
This page documents an earlier version of the API client. For the latest version, see Wait for task.
Required ACL:addObjectAll Algolia write operations are asynchronous.
When you make a request for a write operation, for example, to add or update records in your index, Algolia creates a task on a queue and returns a taskID.
The task itself runs separately, depending on the server load.
You can wait for a write operation to complete by using the task’s taskID and the waitTask method.