0
 Followers
1
 Like

Mobile async javascript function capability

Frontend
New

Hi,


It would be good if we have the possibility to use the javascript async function definition.

Currently if we try to do this:


We don't get any error in the javascript editor, but we are unable to publish. 

Is there a reason for that? If not, it would be good to do that.

Created on 12 Jan
Comments (3)

Hi William,

OutSystems uses promises for async processing in javascript.

See https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/JavaScript/Extend_Your_Mobile_App_Using_JavaScript/Defining_Asynchronous_JavaScript_Code

The reason await/async is not implemented yet, I cannot answer, but probably due to be able to support older browser types.

Regards,

Daniel

Hi Daniel,

Yes, I know. But promises are not a cleaner markup as the async/await is.

Promises can be simple, but sometimes you will run into complexes data manipulation it can be a little bit complex to understand and troubleshoot.

Changed the category to Frontend


views
155
Followers
0