Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/range_reconcile/src/util.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/src/util.ts";

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

Parameters

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

Returns

Promise<void>