Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread async / await promise handling
Thu, Feb 4 2021 11:39 AMPermanent Link

erickengelke

Avatar

Good morning,

I'd really like if  user functions could be declared as async and we could use the await extension like FreePascal's Pas2JS supports.

This would allow huge simplifcaiton of much user code on bigger projects, and would support more external libraries natively in EWB without resorting to native JS code to interface them.

Thanks

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Thu, Feb 11 2021 10:57 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Erick,

<< I'd really like if  user functions could be declared as async and we could use the await extension like FreePascal's Pas2JS supports.

This would allow huge simplifcaiton of much user code on bigger projects, and would support more external libraries natively in EWB without resorting to native JS code to interface them. >>

Yes, this is something that is fairly high on the list.  I just need to work out a couple of things at the compiler level, namely hiding the details about the usage of promises in some contexts.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Feb 12 2021 12:32 PMPermanent Link

erickengelke

Avatar

Tim Young [Elevate Software] wrote:

Erick,

<< I'd really like if  user functions could be declared as async and we could use the await extension like FreePascal's Pas2JS supports.

>Yes, this is something that is fairly high on the list.  I just need to work out a couple of things at the compiler level,
> namely hiding the details about the usage of promises in some contexts.

Great.  Good luck with that.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image