Skip to content

Latest commit

 

History

History
87 lines (41 loc) · 1.18 KB

tryorama.conductorcellsdhtsync.md

File metadata and controls

87 lines (41 loc) · 1.18 KB

Home > @holochain/tryorama > conductorCellsDhtSync

conductorCellsDhtSync() function

A utility function to wait until all conductors' integrated DhtOps are identical for a DNA.

Signature:

conductorCellsDhtSync: (conductorCells: IConductorCell[], interval?: number, timeout?: number) => Promise<void>

Parameters

Parameter

Type

Description

conductorCells

IConductorCell[]

Array of IConductorCell.

interval

number

(Optional) Interval to pause between comparisons (defaults to 50 ms).

timeout

number

(Optional) A timeout for the delay (optional).

**Returns:**

Promise<void>

A promise that is resolved after all agents' DHT states match.