| ARRIS Enterprises, Inc. Confidential Information |
Asynchronous OperationsThe TOI API is used to control the set-top box hardware from a JavaScript portal, and most of the API operates asynchronously. The API is designed so that most function calls will return immediately, allowing your portal to continue to operate while the set-top box hardware carries out the operation in the background. An event mechanism is used to signal when the asynchronous operation completes. As an example, calling the The Portal developer can use an On a few occasions the TOI API also uses a special object for handling more complex asynchronous operation. To start such an operation, simply call the asynchronous function (as illustrated below). The function in question will return an operation handle that can be used to cancel the operation. The first argument to an asynchronous function is a callback object that provides callback functions for handling the result of the operation.
|