Project

Profile

Help

Feature #6447

closed

Async version of ixsl:call?

Added by Martynas Jusevicius 5 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
IXSL extensions
Sprint/Milestone:
-
Start date:
2024-06-07
Due date:
% Done:

0%

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

Description

I was wondering if there could be a variant of ixsl:call function that would allow calling async JS functions using the await keyword? Or maybe a new ixsl:await function?

Because right now the only way I know how to retrieve the result of an async JS function is to define a callback function that throws a CustomEvent which is then matched as an ixsl: template mode.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await

Actions #1

Updated by Norm Tovey-Walsh 3 months ago

  • Status changed from New to Resolved

We've adding support for asynchronous calls using promises in SaxonJS 3.0. We hope that this will cover the use cases you have in mind. If you find that it doesn't, please let us know.

Actions #2

Updated by Debbie Lockett 3 months ago

  • Category set to IXSL extensions
  • Applies to JS Branch Trunk added
  • Fix Committed on JS Branch Trunk added

Please register to edit this issue

Also available in: Atom PDF Tracking page