Home > @holochain/tryorama > dhtSync
A utility function to wait until all conductors' DhtOps have been integrated, and are identical for a given DNA.
Signature:
dhtSync: (players: PlayerApp[], dnaHash: DnaHash, intervalMs?: number, timeoutMs?: number) => Promise<void>|
Parameter |
Type |
Description |
|---|---|---|
|
players |
Array of players. | |
|
dnaHash |
DnaHash |
DNA hash to compare integrated DhtOps from. |
|
intervalMs |
number |
(Optional) Interval to pause between comparisons (defaults to 500 milliseconds). |
|
timeoutMs |
number |
(Optional) A timeout for the delay (defaults to 60000 milliseconds). |
Promise<void>
A promise that is resolved after all agents' DHT states match.