Handling infinite result streams

From the org.neo4j.driver.v1.StatementRunner javadoc :

While these semantics introduce some complexity, it gives the driver the ability to handle infinite result streams (like subscribing to events), significantly lowers the memory overhead for your application and improves performance.

Do you have an example of code of how to handle an infinite result streams for a cypher query with java async driver ? I would like to subscribe to a cypher query result, getting the next results even after stream reach end, without to have to re-ask for the same query result.