How Synchronous Processing Works
OpenAPI provides a function for synchronous processing when it is needed. The IIapi_wait() function takes control away from the application and gives it to OpenAPI until an outstanding database operation completes or until a user-defined timeout expires. This is useful when the application does not have any functions to perform while the response is being generated; it simply calls IIapi_wait() and waits for the response information before proceeding to the next task.
More information: