dispose method
void
dispose()
Disposes of all resources and stops synchronization.
This method calls stop to clean up the timer and report disconnection. Should be called when the strategy is no longer needed (e.g., app shutdown).
Usage:
periodicStrategy.dispose(); // Clean up before app exit
After calling dispose, the strategy instance should not be used again. Create a new instance if you need to restart synchronization.
Implementation
void dispose() {
stop();
}