syncUpload

abstract suspend fun syncUpload(upload: suspend (List<SquashedLocalChange>) -> <ERROR CLASS><<ERROR CLASS><LocalChangeToken, <ERROR CLASS>>>)

Synchronizes the upload result in the database. upload operation may result in multiple calls to the server to upload the data. Result of each call will be emitted by upload and the api caller should Flow.collect it.