Project

Profile

Help

Feature #5596

open

IXSL construct for Promises.all

Added by Martynas Jusevicius about 1 month ago. Updated about 1 month 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>
Actions #1

Updated by Michael Kay about 1 month ago

This is in the plans.

Please register to edit this issue

Also available in: Atom PDF Tracking page