Android, Jetpack, Jetpack Datastore.
workManager.enqueueUniquePeriodicWork( "update_preferences", PeriodicWorkRequest.Builder(UpdatePreferencesWorker::class.java, 12, TimeUnit.HOURS) .setBackoffCriteria(BackoffPolicy.LINEAR, BackoffDelay.ofMinutes(1), WorkRequest.MAX_BACKOFF_DELAY_MILLIS) .build() ) Explanation: We create a