Skip to content

Commit

Permalink
Adding inline doc
Browse files Browse the repository at this point in the history
  • Loading branch information
elielnfinic committed Nov 13, 2024
1 parent 450eb0e commit baf22c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/object/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ export class TopologyObject implements ITopologyObject {
this._notify("callFn", [serializedVertex]);
}

/*
* Merges the given vertices into the object's hashgraph.
* If `synchronizeVertices` is provided, it will be called for each vertex that cannot be merged due to a dependency issue.
* @param vertices - The vertices to merge
* @param synchronizeVertices - A callback to synchronize vertices if there is a dependency issue with the hashgraph
* @returns void
*/
async merge(
vertices: Vertex[],
synchronizeVertices?: (croId: string, nodeId: string) => void,
Expand Down

0 comments on commit baf22c2

Please sign in to comment.