public T withResultSetAsyncListener(Function<ResultSet, ResultSet> resultSetAsyncListener) {
        getOptions().setResultSetAsyncListeners(Optional.of(asList(resultSetAsyncListener)));
        return getThis();
    }
public T withResultSetAsyncListener ( Function < ResultSet , ResultSet > resultSetAsyncListener ) { getOptions ( ) . setResultSetAsyncListeners ( Optional . of ( asList ( resultSetAsyncListener ) ) ) ; return getThis ( ) ; }
Add the given async listener on the {@link com.datastax.driver.core.ResultSet} object.
Example of usage:
<pre class="code"><code class="java">

.withResultSetAsyncListener(resultSet -> {
//Do something with the resultSet object here
})

</code></pre>

Remark: <strong>it is not allowed to consume the ResultSet values. It is strongly advised to read only meta data</strong>