Listing 6 illustrates how to make an asynchronous call.
清单6展示了如何实现异步调用。
Notify the user if an error occurred during the asynchronous call.
如果在异步调用过程中出现错误,则通知用户。
An asynchronous call to the server is made to perform the server validation.
对服务器进行异步调用以执行服务器验证。
To make the actual asynchronous call, the functions WSASend, WSARecv are called.
通过调用WSASend,WSARecv函数,进行实际的异步调用。
The asynchronous call to the server will be triggered when the validate method is called.
当验证方法被调用时,对服务器的异步调用将被触发。
Some of these commands result in asynchronous call backs.
这些命令导致异步回调。
This relieves you of manually handling exceptions that occur during an asynchronous call.
这能让您不用再手工处理异步调用过程中发生的异常。
It makes an asynchronous call to the data that we exposed RESTfully in the previous step.
它对上一步中以REST形式显示的数据进行了异步调用。
When it receives focus, an asynchronous call is made to retrieve the values from the server.
在获得焦点时,则发出异步调用,从服务器检索值。
This exception is thrown when the client tries to get the response from an asynchronous call.
当客户端尝试从异步调用获得响应时,将会引发此异常。
This is an asynchronous call, so once the message is given to WebSphere MQ, the call returns.
这是一个异步调用,因此,一旦将该消息给WebSphereMQ,该调用就会返回。
Furthermore, there is quite a bit of boilerplate code involved in setting up an asynchronous call.
此外,在建立异步调用时还包括不少样板代码。
Listing 10 shows a code snippet that makes an asynchronous call to the web service defined in Listing 1.
清单10显示了异步调用清单1中定义的Web服务的代码片段。
The point to make here is that the invocation of your service as described above is an asynchronous call.
这里要强调的是上面描述的对您的Web服务的调用是一个异步调用。
You can use this deferred object for defining a callback method when the asynchronous call returns a response.
我们可以使用这个deferred对象来定义一个在异步调用返回响应时执行的回调函数。
Pretty much any kind of external service is going to require an asynchronous call that returns on the UI thread.
几乎任何类型的外部服务都需要一个返回UI线程的异步调用。
Instead, the browser will have an asynchronous call to the server to obtain the data and refresh only specific parts of the current page.
相反,浏览器将具有一个对服务器的异步调用以获得数据,并且只刷新当前页面的特定部分。
When a user tabs out of the field and the Zip Code field loses focus, an asynchronous call is made to the server to retrieve the location data.
当用户用tab键移出此字段且ZipCode字段失去焦点时,就会向服务器发出异步调用以检索位置数据。
Even if it's possible to make an asynchronous servlet, it's almost useless without the ability to make an asynchronous call to local and remote resources.
如果不能对本地和远程资源进行异步调用,即使能够实现异步servlet也毫无用处。
If the user has entered the minimum number of characters (default: 3), then the asynchronous call should be made to the server to populate the suggestion list.
如果用户输入了最小字符数(默认值:3),则应向服务器发出异步调用,填充建议列表。
If this takes several seconds, which is not uncommon for an asynchronous call, the anonymous class may be inadvertently promoted to the more expensive generation 1 or 2.
如果此过程耗时数秒,这对于异步调用而言是很常见的,而该匿名类可能在不经意间被晋升为垃圾回收器中更昂贵的1代或2代对象[3]。
If the user presses any other key and has entered at least the minimum number of characters, an asynchronous call to the server is made to retrieve a JSON array of Suggestions.
如果用户按下其他任何键,且输入了最小字符数或更多字符,则将对服务器发出异步调用,检索建议的JSON数组。
Listing 2 shows the Listing 1 code modified to use a trivial asynchronous call (trivial in that the application code just waits for the operation to complete rather than doing anything useful).
清单2显示了经过修改的清单1代码,其中使用了一个小小的异步调用(应用程序代码仅仅等待操作完成,而不进行任何有用的工作)。
Listing 2 shows the Listing 1 code modified to use a trivial asynchronous call (trivial in that the application code just waits for the operation to complete rather than doing anything useful).
清单2显示了经过修改的清单1代码,其中使用了一个小小的异步调用(应用程序代码仅仅等待操作完成,而不进行任何有用的工作)。
应用推荐