发明名称 PATTERN-BASED COMPILATION OF ASYNCHRONOUS CONSUMPTION
摘要 The present invention extends to methods, systems, and computer program products for transforming source code to await execution of asynchronous operations. Embodiments of the invention simplify authoring and use of asynchronous methods, by generating statements that use well-defined awaitable objects to await completion of asynchronous operations. For example, a computer system can transform a statement that requests to await the completion of an asynchronous operation into a plurality of statements that use a predefined pattern of members of an awaitable object corresponding the asynchronous operation. The pattern can include one or more members configured to return a completion status of the asynchronous operation, one or more members configured to resume execution of the asynchronous method at a resumption point when the asynchronous operation completes, and one or more members configured to retrieve completion results. Accordingly, the plurality of statements can use these members to await execution of the asynchronous operation.
申请公布号 US2012324431(A1) 申请公布日期 2012.12.20
申请号 US201113162288 申请日期 2011.06.16
申请人 TOUB STEPHEN HARRIS;TORGERSEN MADS;WISCHIK LUCIAN JULES;HEJLSBERG ANDERS;GUSTAFSSON NIKLAS;LOMOV DMITRY;WARREN MATTHEW J.;MICROSOFT CORPORATION 发明人 TOUB STEPHEN HARRIS;TORGERSEN MADS;WISCHIK LUCIAN JULES;HEJLSBERG ANDERS;GUSTAFSSON NIKLAS;LOMOV DMITRY;WARREN MATTHEW J.
分类号 G06F9/45 主分类号 G06F9/45
代理机构 代理人
主权项
地址