Project

Profile

Help

Feature #6447

open

Async version of ixsl:call?

Added by Martynas Jusevicius about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2024-06-07
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

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

No data to display

Please register to edit this issue

Also available in: Atom PDF Tracking page