Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/range_reconcile/mod.ts>sync

Efficiently sync sets with range-based set reconciliation
Go to Latest
function sync
import { sync } from "https://deno.land/x/range_reconcile@0.1.2/mod.ts";

Execute a complete exchange between two RangeMessengers, syncing their trees.

Parameters

from: RangeMessenger<E, V, L>
to: RangeMessenger<E, V, L>
optional
messages: AsyncIterable<E> | Iterable<E>
optional
isDone: Deferred<unknown>

Returns

Promise<void>