Tree.

sync(tree)

Given an asynchronous map-based tree constructed from AsyncMap nodes, this awaits all the keys and values in the tree and returns them as a new tree of regular, synchronous Map nodes.