algoliasearch/src/main/java/com/algolia/search/saas/Index.java
public Request addObjectAsync(final @NonNull JSONObject object, @Nullable CompletionHandler completionHandler) {
        return getClient().new AsyncTaskRequest(completionHandler) {
            @NonNull
            @Override protected JSONObject run() throws AlgoliaException {
                return addObject(object, /* requestOptions: */ null);
            }
        }.start();
    }
public Request addObjectAsync(final @NonNull JSONObject object, @Nullable CompletionHandler completionHandler) {
        return getClient().new AsyncTaskRequest(completionHandler) {
            @NonNull
            @Override protected JSONObject run() throws AlgoliaException {
                return addObject(object, /* requestOptions: */ null);
            }
        }.start();
    }
Adds an object to this index (asynchronously).
<p>
WARNING: For performance reasons, the arguments are not cloned. Since the method is executed in the background,
you should not modify the object after it has been passed.
</p>

@param object            The object to add.
@param completionHandler The listener that will be notified of the request's outcome.
@return A cancellable request.