synchronizePages<T, K extends Comparable<K> > function
Synchronize two pages that are ordered with their keys in ascending order.
Implementation
Future<PageSyncStat> synchronizePages<T, K extends Comparable<K>>(
Page<T> source,
Page<T> target,
K Function(T item) keyFn, {
Future<bool> Function(T item)? onlySource,
Future<bool> Function(T item)? onlyTarget,
Future<bool> Function(T source, T target)? matched,
}) {
return synchronizeStreamIterators(
source.asIterator(),
target.asIterator(),
keyFn,
onlySource: onlySource,
onlyTarget: onlyTarget,
matched: matched,
);
}