doWork

open suspend override fun doWork(): ListenableWorker.Result

Executes the background work of synchronizing data between the local database and the server.

Return

The result of the background work, either Result.success or Result.failure.