ReplicaClient
fun ReplicaClient( networkConnectivityProvider: NetworkConnectivityProvider? = null, timeProvider: TimeProvider = RealTimeProvider(), coroutineScope: CoroutineScope = DefaultCoroutineScope): ReplicaClient
Content copied to clipboard
Creates a replica client. Typically, it should be a singleton.
Parameters
networkConnectivityProvider
timeProvider
See: TimeProvider
coroutineScope
a coroutine scope that represents life time of a replica client. This scope must have a single-thread coroutine dispatcher for example Dispatchers.Main.immediate.