Is it possible to receive expiration or timeout exception when making a synchronous call?
当进行同步调用时,是否能够接收过期或超时异常?
It will stop waiting if the condition is fulfilled, or return a timeout exception if it exceeds the maximum waiting time.
它将在条件满足时停止等待,或者在超出最大等待时间时返回一个超时异常。
In this example, if a user takes more than a minute to confirm a buy or sell order, the web service throws a timeout exception.
本例中,如果用户确认买卖订单的时间超过一分钟,Web服务就会发出超时异常。
应用推荐