Skip to content

Commit

Permalink
Fixed waitTask snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
redox committed Jun 10, 2014
1 parent 3921171 commit bad33da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ All write operations return a `taskID` when the job is securely stored on our in
For example, to wait for indexing of a new object:
```java
JSONObject res = index.addObject(new JSONObject().put("firstname", "Jimmie").put("lastname", "Barninger"));
index.waitTask(String.valueOf(res.getLong("objectID")));
index.waitTask(String.valueOf(res.getLong("taskID")));
```


Expand Down

0 comments on commit bad33da

Please sign in to comment.