[Pas2js] Async, AWait

silvioprog silvioprog at gmail.com
Thu May 28 14:16:12 CEST 2020


On Thu, May 28, 2020 at 4:17 AM Mattias Gaertner via Pas2js <
pas2js at lists.freepascal.org> wrote:

> 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


This is great news! 🎉

I'm away from front-end development a bit, but I'm going to test this
feature. Async/await is a very useful feature, I have been using it a lot
to call non-blocking functions in Rust with more syntax sugar.

Thanks for releasing it!

--
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20200528/0ec59ae8/attachment.htm>


More information about the Pas2js mailing list