Ditto  1.0.14
Public Member Functions | List of all members
ditto::LiveQuery Class Reference

The type that is returned when calling Collection::observe. It handles the logic for calling the event handler that is provided to the Collection::observe call. More...

Public Member Functions

void stop ()
 Stop the live query from delivering updates. More...
 

Detailed Description

The type that is returned when calling Collection::observe. It handles the logic for calling the event handler that is provided to the Collection::observe call.

These objects must be kept in scope for as long as you wish to keep receiving updates about the associated query.

Member Function Documentation

◆ stop()

void ditto::LiveQuery::stop ( )

Stop the live query from delivering updates.

When you no longer want to receive updates about documents matching a query then call stop() on the LiveQuery object.