code:
argument of waitForCompletion
code:
is 0, both the data session and the server session run in parallel. This allows the end user to browse and modify data while a delegated procedure is executed on the server side in the background. However, at the end of execution, the results are loaded back in to the data session without any warning. pro::DelegateToServer
This unannounced loading of data does not provide the best user experience. This article presents the approach to manually control this data transfer between the data and server sessions.
Here's more