You are not logged in.
Pages: 1
Hi mORMot community,
I'd like to call a service similar to this with CallbackGetResult
procedure TSQLRestServerDBCustomLI.SimpleButLong(Ctxt: TSQLRestServerURIContext);
begin
if UrlDecodeNeedParameters(Ctxt.Parameters, 'param1') then
begin
DoSomethingShort();
Ctxt.Returns('something blabla ok'); //return there, the user only need this and don't want to wait
DoSomethingLong(); //Should be executed, but user shouldn't be waiting
end else
Ctxt.Error('ERROR: params missing');
end;
and get the result (client side) when it hit "Ctxt.Returns" and not at the end of the procedure, is this possible? I havn't been able to find it in the doc or forum.
Offline
Pages: 1