<div dir="ltr"><div dir="ltr">On Thu, May 28, 2020 at 4:17 AM Mattias Gaertner via Pas2js <<a href="mailto:pas2js@lists.freepascal.org" target="_blank">pas2js@lists.freepascal.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
pas2js trunk now supports async procedures and await functions.<br>
This can greatly simplify writing asynchronous code, like starting a<br>
download, handle the result, depending on the result download the next<br>
piece and so forth.<br>
Formerly you needed some (anonymous) functions for that. Now you can<br>
write asynchronous code, that looks like normal, synchronous<br>
code.<br>
<br>
<a href="https://wiki.freepascal.org/pas2js_AsyncAWait" rel="noreferrer" target="_blank">https://wiki.freepascal.org/pas2js_AsyncAWait</a><br>
<br>
Mattias</blockquote></div><div><br></div><div>This is great news! 🎉</div><div><br></div><div>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.</div><div><br></div><div>Thanks for releasing it!</div><div><br></div>--<br><div dir="ltr"><div dir="ltr"><div>Silvio Clécio</div></div></div></div>