[Pas2js] Async, AWait

Mattias Gaertner nc-gaertnma at netcologne.de
Thu May 28 09:17:11 CEST 2020


Hi all,

pas2js trunk now supports async procedures and await functions.
This can greatly simplify writing asynchronous code, like starting a
download, handle the result, depending on the result download the next
piece and so forth.
Formerly you needed some (anonymous) functions for that. Now you can
write asynchronous code, that looks like normal, synchronous
code.

https://wiki.freepascal.org/pas2js_AsyncAWait

Mattias


More information about the Pas2js mailing list