Now that you have seen a successful update, we'll show the case where the update fails.
在展示了一个更新成功的场景后,我们来看一个更新失败的例子。
We must fetch the current counter value from the server, but the counter state is remembered after a successful update.
我们必须从服务器获取当前的计数器值,但在成功更新之后将保存计数器的状态。
In that case, it will usually cost three round-trips to do an update (the initial failed update attempt, the fetch of the current counter value, and the final successful update).
对于这种情况,通常需要3次循环才能执行一次更新(首次更新尝试失败;获取当前的计数器值;最后成功更新)。
In that case, it will usually cost three round-trips to do an update (the initial failed update attempt, the fetch of the current counter value, and the final successful update).
对于这种情况,通常需要3次循环才能执行一次更新(首次更新尝试失败;获取当前的计数器值;最后成功更新)。
应用推荐