#1 2019-01-23 00:56:40

wangchong
Member
Registered: 2011-08-15
Posts: 42

Does mormot support asynchronous access?

Does mormot support asynchronous access?

Offline

#2 2019-01-23 09:12:51

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Does mormot support asynchronous access?

What do you mean?

From the client side, on a UI?
Use a background thread, then send messages to the UI thread. There is even a direct thread redirection to the VCL thread for interface-based services.
See https://synopse.info/files/html/Synopse … l#TITL_191

Offline

#3 2019-01-24 00:10:32

wangchong
Member
Registered: 2011-08-15
Posts: 42

Re: Does mormot support asynchronous access?

I mean  restapi provides asynchronous callbacks

Offline

#4 2019-01-24 00:50:06

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Does mormot support asynchronous access?

Do you mean https://synopse.info/files/html/Synopse … l#TITL_149 ?

(please always check the doc first)

Offline

#5 2019-01-24 12:57:09

mohsenti
Member
Registered: 2015-04-11
Posts: 72

Re: Does mormot support asynchronous access?

@ab, There is also an unanswered question about this subject here https://synopse.info/forum/viewtopic.php?pid=28888
Can you explain this subject more?
AsynchRedirect seems the best way to implement asynchronous calls especially when you do not have a UI and using Linux so does not have Windows messages and want to prevent locks in case of calling server in a callback.

Last edited by mohsenti (2019-01-24 13:00:19)

Offline

Board footer

Powered by FluxBB