SyncExecutor

abstract class SyncExecutor

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
internal inner class Request(syncStateFlow: StateFlow<SyncState>, job: Job, logger: KaliumLogger) : SyncRequest

Functions

Link copied to clipboard
abstract suspend fun <T> request(executorAction: suspend SyncRequest.() -> T): T

Requests Sync to be performed, fetching new events, etc. bringing the user to an online status. At the end of executorAction, the request is released.

Link copied to clipboard
Link copied to clipboard
abstract suspend fun stopForRestart()

Permanently stops sync and waits for in-flight event processing to finish.