Hi,
A queue sends requests in 1 HTTP request to server and server also sends the responses in 1 HTTP request to client.
Are the RPCCallback executes also guaranteed to be executed in the order they were set in queue?
And seeing as JavaScript only has 1 thread, does that mean that whenever the last RPCCallback in the queue was executed, it is guaranteed that all others are finished?
For instance here:
doA doB doC are some methods which include an async call to the server with RPCCallback objects.
Is the following true?
1) The execute method in withRPCCallbackB can see objects from the result of call A, not yet from call C.
2) The execute method in withRPCCallbackC can see objects from A, B and C.
3) When the execute method in withRPCCallbackC ends, all results are processed.
Thanks for the input.
SmartGWT EE 2.3 official
A queue sends requests in 1 HTTP request to server and server also sends the responses in 1 HTTP request to client.
Are the RPCCallback executes also guaranteed to be executed in the order they were set in queue?
And seeing as JavaScript only has 1 thread, does that mean that whenever the last RPCCallback in the queue was executed, it is guaranteed that all others are finished?
For instance here:
Code:
RPCManager.startQueue(); doA(withRPCCallbackA); doB(withRPCCallbackB); doC(withRPCCallbackC); RPCManager.sendQueue();
Is the following true?
1) The execute method in withRPCCallbackB can see objects from the result of call A, not yet from call C.
2) The execute method in withRPCCallbackC can see objects from A, B and C.
3) When the execute method in withRPCCallbackC ends, all results are processed.
Thanks for the input.
SmartGWT EE 2.3 official
Comment