Project

Profile

Help

Feature #6447

closed

Async version of ixsl:call?

Added by Martynas Jusevicius 7 months ago. Updated 3 days ago.

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

100%

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 5 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 5 months ago

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

Updated by Stefan Hermann about 2 months ago

As I understand this feature is not yet publicly available since SaxonJS 3.0 is not yet released?

Actions #4

Updated by Debbie Lockett 3 days ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in JS Release set to SaxonJS 3.0

Bug fix applied in the SaxonJS 3.0.0-beta1 preview release.

Please register to edit this issue

Also available in: Atom PDF Tracking page