syncDownload

abstract suspend fun syncDownload(conflictResolver: ConflictResolver, download: suspend () -> Flow<List<Resource>>)

Deprecated

To be deprecated.

Synchronizes the download results with the database.

This function updates the local database to reflect the results of the download operation, resolving any conflicts using the provided ConflictResolver.

Parameters

conflictResolver

The ConflictResolver to use for resolving conflicts between local and remote data.

download

A suspending function that returns a Flow of lists of Resource objects representing the downloaded data.