Project

Profile

Help

Feature #5596

open

IXSL construct for Promises.all

Added by Martynas Jusevicius over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-07-09
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

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 single Promise 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>

Please register to edit this issue

Also available in: Atom PDF Tracking page