SyncRequest

interface SyncRequest

Inheritors

Functions

Link copied to clipboard
abstract 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
abstract suspend fun waitUntilLiveOrFailure(): <Error class: unknown class><<Error class: unknown class>, Unit>

Shortcut for waitUntilOrFailure with Live state.

Link copied to clipboard
abstract suspend 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.