dispose

fun dispose()

Disposes the resources handled by this DatasyncManager instance, that is all its subscriptions.

In other words, this method cancels the subscriptions managed by this DatasyncManager instance, which have been created using the DatasyncNode.subscribe or subscribeToStateChange methods. It is particularly useful when the DatasyncManager instance is associated with an Android view: it can be called as soon as the view is disposed (for example from the Activity.onDestroy callback).