[Pas2js] JS Sync/Async Limitations
Michael Van Canneyt
michael at freepascal.org
Thu Feb 21 16:04:34 CET 2019
On Thu, 21 Feb 2019, Sergei Vertiev wrote:
> Hello, Mattias, thanks to you...
>
>>> I started a page for Delphians porting code to
>>> pas2js. Feel free to improve it:
>
> I read "Asynchronous vs Waiting" article.
> This is short, but significant and true.
>
> But seems, there are no ways to overcame this "Async/vs Waiting" obstacle.
> I've tried seemed everything, before realize that ALL Async stuff starts to
> processing only AFTER we leave our (syncronious) function.
Yes.
>
> This means that we simply unable to implement some functionality in JS,
> which goes from Pas code.
Correct. It is pointless to try.
>
> Still sync operations and UI callbacks as Events works fine
> and this is quite enough for certain types of tasks.
Yes, correct.
Basically the browser is oriented on the user experience, which means: no wait cursor...
Michael.
More information about the Pas2js
mailing list