发明名称 |
Simulating synchronous execution of asynchronous operations |
摘要 |
A computer-implemented method is presented here. The method obtains a script to be executed, wherein the script includes instructions for an asynchronous operation, and wherein the asynchronous operation includes a request calling for a result. The method continues by performing a provisional iteration of the script, wherein the provisional iteration of the script is associated with at least a portion of the script, and wherein the provisional iteration of the script obtains and saves the result as a cached result. Thereafter, a final iteration of the script is performed using the cached result. |
申请公布号 |
US9317322(B2) |
申请公布日期 |
2016.04.19 |
申请号 |
US201213659277 |
申请日期 |
2012.10.24 |
申请人 |
Google Technology Holdings LLC |
发明人 |
Kriesing Wolfram |
分类号 |
G06F15/16;G06F9/48;G06F9/455 |
主分类号 |
G06F15/16 |
代理机构 |
Byrne Poh LLP |
代理人 |
Byrne Poh LLP |
主权项 |
1. A computer-implemented method comprising:
obtaining a script to be executed, the script comprising instructions for a plurality of asynchronous operations, wherein each asynchronous operation includes a request calling for a result; performing a plurality of provisional iterations of the script, wherein each provisional iteration of the script comprises performing at least one of the plurality of asynchronous operations, obtaining a result for the at least one of the plurality of asynchronous operations, and caching the result in a storage device; determining whether results for each of the plurality of asynchronous operations has been cached in the storage device; and in response to determining that the results for each of the plurality of asynchronous operations has been stored in the storage device, performing a final iteration of the script using the cached results stored in the storage device. |
地址 |
Mountain View CA US |