Description
Description
Add wait(int $timeoutInMs, int $intervalInMs)
method to Task class.
Basic example
So instead of:
$task = $this->client->createIndex('new-index', ['primaryKey' => 'objectID']);
$task = $this->index->waitForTask($task->getTaskUid());
We could write:
$task = $this->client->createIndex('new-index', ['primaryKey' => 'objectID'])->wait();