Request

inner class Request(syncStateFlow: <Error class: unknown class><SyncState>, job: <Error class: unknown class>, logger: <Error class: unknown class>) : SyncRequest

Constructors

Link copied to clipboard
internal constructor(syncStateFlow: <Error class: unknown class><SyncState>, job: <Error class: unknown class>, logger: <Error class: unknown class>)

Functions

Link copied to clipboard
open override fun keepSyncAlwaysOn()

When called, the sync process continues without being released. This ensuring synchronization persists as long as the sync scope lives. This is particularly useful for services that do not care about the lifecycle, like TestService, CLI, etc. and shouldn't be used by applications that turn sync on/off, like Mobile apps.

Link copied to clipboard
internal fun release()

Releases/Stops the Sync Request. Sync will continue ongoing / the device will keep attempting to stay online while at least one Request is still ongoing.

Link copied to clipboard
open suspend override fun waitUntilLiveOrFailure(): <Error class: unknown class><<Error class: unknown class>, Unit>

Shortcut for waitUntilOrFailure with Live state.

Link copied to clipboard
open suspend override fun waitUntilOrFailure(syncState: SyncState): <Error class: unknown class><<Error class: unknown class>, Unit>

Suspends execution until the specified syncState is reached or a failure occurs.