[Pas2js] Pas2js Digest, Vol 28, Issue 3
mister highball
mr.highball at hotmail.com
Wed Jun 3 15:15:46 CEST 2020
This is indeed a good addition for sure!
And Michael, while its not baked into the language, ezthreads comes close by offering "await" functionality as well as some other niceties (thread pool for parallel, events, etc...)
https://github.com/mr-highball/ezthreads
cheers 🍻,
-highball
________________________________
From: Pas2js <pas2js-bounces at lists.freepascal.org> on behalf of pas2js-request at lists.freepascal.org <pas2js-request at lists.freepascal.org>
Sent: Wednesday, June 3, 2020 6:00:02 AM
To: pas2js at lists.freepascal.org <pas2js at lists.freepascal.org>
Subject: Pas2js Digest, Vol 28, Issue 3
Send Pas2js mailing list submissions to
pas2js at lists.freepascal.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js
or, via email, send a message with subject or body 'help' to
pas2js-request at lists.freepascal.org
You can reach the person managing the list at
pas2js-owner at lists.freepascal.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Pas2js digest..."
Today's Topics:
1. Re: Async, AWait (Michael Schnell)
2. Re: Async, AWait (Michael Schnell)
----------------------------------------------------------------------
Message: 1
Date: Tue, 2 Jun 2020 09:58:21 +0000
From: Michael Schnell <MSchnell at lumino.de>
To: pas2js discussions <pas2js at lists.freepascal.org>
Subject: Re: [Pas2js] Async, AWait
Message-ID: <d8eb87ae60c84424857e8e33b989b519 at lumino.de>
Content-Type: text/plain; charset="utf-8"
Great !
I seem to remember that functions like that are available in Oxygen (inherited from C#) but supposedly with different names and usage conventions.
It would be great if the "Desktop fpc would have this, as well to allow for "asynchronous loops" (making use of multiple CPUs) and similar stuff, and if the Pascal dialects could allow for writing compatible code for all of them.
-Michael
------------------------------
Message: 2
Date: Tue, 2 Jun 2020 10:07:08 +0000
From: Michael Schnell <MSchnell at lumino.de>
To: pas2js discussions <pas2js at lists.freepascal.org>
Subject: Re: [Pas2js] Async, AWait
Message-ID: <7cb8692be360430396f98ab455828370 at lumino.de>
Content-Type: text/plain; charset="utf-8"
From the top of my head: Among other stuff, Oxygen features "parallel loop" and "future" variable for such purpose.
-Michael
------------------------------
Subject: Digest Footer
_______________________________________________
Pas2js maillist - Pas2js at lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js
------------------------------
End of Pas2js Digest, Vol 28, Issue 3
*************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20200603/fe8b7e01/attachment.htm>
More information about the Pas2js
mailing list