combineEager
fun <T1 : Any, T2 : Any, R : Any> combineEager( replica1: Replica<T1>, replica2: Replica<T2>, transform: (T1?, T2?) -> R): Replica<R>
Content copied to clipboard
Combines two replicas to a single replica. Data is merged when any of replicas has loaded data.
Parameters
replica1
first replica
replica2
second replica
transform
function that merges replica data together.
fun <T1 : Any, T2 : Any, T3 : Any, R : Any> combineEager( replica1: Replica<T1>, replica2: Replica<T2>, replica3: Replica<T3>, transform: (T1?, T2?, T3?) -> R): Replica<R>
Content copied to clipboard
Combines three replicas to a single replica. Data is merged when any of replicas has loaded data.
Parameters
replica1
first replica
replica2
second replica
replica3
third replica
transform
function that merges replica data together.
fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any, R : Any> combineEager( replica1: Replica<T1>, replica2: Replica<T2>, replica3: Replica<T3>, replica4: Replica<T4>, transform: (T1?, T2?, T3?, T4?) -> R): Replica<R>
Content copied to clipboard
Combines four replicas to a single replica. Data is merged when any of replicas has loaded data.
Parameters
replica1
first replica
replica2
second replica
replica3
third replica
replica4
fourth replica
transform
function that merges replica data together.
fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any, T5 : Any, R : Any> combineEager( replica1: Replica<T1>, replica2: Replica<T2>, replica3: Replica<T3>, replica4: Replica<T4>, replica5: Replica<T5>, transform: (T1?, T2?, T3?, T4?, T5?) -> R): Replica<R>
Content copied to clipboard
Combines five replicas to a single replica. Data is merged when any of replicas has loaded data.
Parameters
replica1
first replica
replica2
second replica
replica3
third replica
replica4
fourth replica
replica5
fifth replica
transform
function that merges replica data together.