periodicSync

inline fun <W : FhirSyncWorker> periodicSync(context: <ERROR CLASS>, periodicSyncConfiguration: PeriodicSyncConfiguration)

Starts a periodic sync based on FhirSyncWorker. It takes PeriodicSyncConfiguration to determine the sync frequency and RetryConfiguration to guide the retry mechanism. Caller can set retryConfiguration to null to stop retry.