TCriticalSection

I tried setting up a TCriticalSection in a web core app. Seems adding System.SyncObjs to the uses list doesn't work? Is there another option?

Have a situation where there are a bunch of XData async requests completing at different times and want to update an FNCGrid with only one request at a time. I've managed to get it to work just using a form variable as a gate of sorts, but not really the same as a TCriticalSection.

Sorry, there is no support for TCriticalSection as JavaScript itself is a single-threaded language:

A promise based approach can make async code easier to manage.

Ah, very well then. Makes all your work with await and async all the more impressive I think!

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.