resolveYamlAsyncTags
resolveYamlAsyncTags(
node):Promise<void>
Defined in: packages/format-yaml/src/resolve-async-tags.ts:15
Settles every Promise an async custom tag left behind in node.
A ScalarTag.resolve declared async hands the composer a Promise, which
it stores as the scalar’s value verbatim — so toJS() would serialise the
promise rather than what it settles to. Awaiting the tree once, between
composing it and reading it, is what makes an async tag usable.
Mutates node in place. Linear in the number of nodes; the awaits run in
document order, not concurrently.
Parameters
Section titled “Parameters”YamlNode | YamlDocument<YamlNode, true> | null
Returns
Section titled “Returns”Promise<void>