Skip to content

Commit

Permalink
adding kdoc for coroutine-safety (#2417)
Browse files Browse the repository at this point in the history
  • Loading branch information
MJ1998 authored Jan 31, 2024
1 parent d601844 commit d97031d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ internal class FhirSynchronizer(
return state
}

/**
* Manages the sequential execution of downloading and uploading for coordinated operation. This
* function is coroutine-safe, ensuring that multiple invocations will not interfere with each
* other.
*/
suspend fun synchronize(): SyncJobStatus {
mutex.withLock {
setSyncState(SyncJobStatus.Started())
Expand Down

0 comments on commit d97031d

Please sign in to comment.