Feature #5596
closedIXSL construct for Promises.all
0%
Description
`Promises.all is very useful when executing multipe promises at the same time:
The
Promise.all()
method takes an iterable of promises as an input, and returns a singlePromise
that resolves to an array of the results of the input promises. This returned promise will resolve when all of the input's promises have resolved, or if the input iterable contains no promises. It rejects immediately upon any of the input promises rejecting or non-promises throwing an error, and will reject with this first rejection message / error.
Can we have an alternative in Saxon-JS 3? For example:
<ixsl:wait>
<xsl:for-each select="elem">
<ixsl:schedule-action ...>
</xsl:for-each>
<ixsl:on-completion>
<xsl:message>All actions done</xsl:message>
</ixsl:on-completion>
</ixsl:wait>
Updated by Debbie Lockett 4 months ago
- Category set to IXSL extensions
- Status changed from New to Resolved
- Assignee set to Debbie Lockett
- Sprint/Milestone set to SaxonJS 3.0
- Applies to JS Branch Trunk added
- Fix Committed on JS Branch Trunk added
The support for promises in SaxonJS 3 will include ixsl:all()
(and other corresponding functions for concurrency).
Please register to edit this issue
Also available in: Atom PDF Tracking page