abstract suspend fun uploadAllLocalChanges(timeout: Duration = Duration.INFINITE): Boolean

Calling this method will block until all known local changes have been uploaded to the server or the specified timeout is hit. This will involve network access, so calling this method should only be done from a non-UI thread.


true if the data was uploaded. false if the upload timed out before it could complete. The upload will continue in the background, even after returning false.



Maximum amount of time before this method should return.


if timeout is <= 0.

if a problem was encountered with the connection during the upload.