The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.

The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.

Date of Patent:
Dec. 23, 2014

Filed:

Jun. 16, 2011
Applicants:

Stephen Harris Toub, Seattle, WA (US);

Mads Torgersen, Issaquah, WA (US);

Lucian Jules Wischik, Seattle, WA (US);

Anders Hejlsberg, Seattle, WA (US);

Niklas Gustafsson, Redmond, WA (US);

Dmitry Lomov, Redmond, WA (US);

Matthew J. Warren, Redmond, WA (US);

Inventors:

Stephen Harris Toub, Seattle, WA (US);

Mads Torgersen, Issaquah, WA (US);

Lucian Jules Wischik, Seattle, WA (US);

Anders Hejlsberg, Seattle, WA (US);

Niklas Gustafsson, Redmond, WA (US);

Dmitry Lomov, Redmond, WA (US);

Matthew J. Warren, Redmond, WA (US);

Assignee:

Microsoft Corporation, Redmond, WA (US);

Attorneys:
Primary Examiner:
Int. Cl.
CPC ...
G06F 9/45 (2006.01); G06F 9/44 (2006.01);
U.S. Cl.
CPC ...
G06F 8/456 (2013.01);
Abstract

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.


Find Patent Forward Citations

Loading…