oneTimeSync

inline fun <W : FhirSyncWorker> oneTimeSync(context: Context, retryConfiguration: RetryConfiguration? = defaultRetryConfiguration): Flow<CurrentSyncJobStatus>

Starts a one time sync job based on FhirSyncWorker.

Use the returned Flow to get updates of the sync job. Alternatively, use getWorkerInfo with the same FhirSyncWorker to retrieve the status of the job.

Return

a Flow of CurrentSyncJobStatus

Parameters

retryConfiguration

configuration to guide the retry mechanism, or null to stop retry.