Project

Profile

Help

Feature #6447

closed

Async version of ixsl:call?

Added by Martynas Jusevicius 7 months ago. Updated 4 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

Please register to edit this issue

Also available in: Atom PDF Tracking page