How can I know the result of an indexing method?

How can I get a confirmation that the result of an indexing operation was OK ?
I see there is a taskID parameter to the wait method but I don’t see what can be done with it…
I see that in JS the wait method returns a promise that can be used to do exactly that but I guess Python doesn’t have this functionality ?

There isn’t a true equivalent to promises in the Python API, but index operations will return a taskID you can use with the waitTask method to create your own promise-like behaviour for an index operation.

waitTask is described here and documented here: