syncUpload

abstract suspend fun syncUpload(upload: suspend (List<LocalChange>) -> Flow<Pair<LocalChangeToken, Resource>>)

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.

Sources

androidJvm source
Link copied to clipboard